diff --git a/packages/cli/Cargo.toml b/packages/cli/Cargo.toml index 9baf48ade..a77095f0e 100644 --- a/packages/cli/Cargo.toml +++ b/packages/cli/Cargo.toml @@ -7,7 +7,7 @@ description = "CLI for building fullstack web, desktop, and mobile apps with a s repository = "https://github.com/DioxusLabs/dioxus/" license = "MIT OR Apache-2.0" keywords = ["mobile", "gui", "cli", "dioxus", "wasm"] -rust-version = "1.89.0" # todo: fix the requirement caused by cargo-generate on 1.89 +rust-version = "1.81.0" [dependencies] dioxus-autofmt = { workspace = true } @@ -119,7 +119,7 @@ shell-words = { workspace = true } log = { version = "0.4", features = ["max_level_off", "release_max_level_off"] } # link intercept -tempfile = "3.23.0" +tempfile = "3.19.1" manganis = { workspace = true } manganis-core = { workspace = true } target-lexicon = { version = "0.13.2", features = ["serde", "serde_support"] } diff --git a/packages/cli/src/build/request.rs b/packages/cli/src/build/request.rs index 9f085c810..ef6ce21e2 100644 --- a/packages/cli/src/build/request.rs +++ b/packages/cli/src/build/request.rs @@ -960,10 +960,11 @@ impl BuildRequest { } } + #[allow(deprecated)] let session_cache_dir = args .session_cache_dir .clone() - .unwrap_or_else(|| TempDir::new().unwrap().keep()); + .unwrap_or_else(|| TempDir::new().unwrap().into_path()); let extra_rustc_args = shell_words::split(&args.rustc_args.clone().unwrap_or_default()) .context("Failed to parse rustc args")?;