Skip to content

Commit 9561c16

Browse files
authored
Replace tempdir with tempfile by RUSTSEC-2018-0017 (#115)
1 parent 970c9bb commit 9561c16

File tree

4 files changed

+59
-60
lines changed

4 files changed

+59
-60
lines changed

Cargo.lock

Lines changed: 56 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ relative-path = "2.0.1"
2424
serde = { version = "1.0.219", features = ["derive"] }
2525
serde_json = "1.0.141"
2626
toml = "0.9.2"
27-
tempdir = "0.3.7"
27+
tempfile = "3.22"
2828
test-log = "0.2.18"
2929
cargo_metadata = "0.21.0"
3030
cargo-util-schemas = "0.8.2"

crates/xtask/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ anyhow.workspace = true
88
clap.workspace = true
99
env_logger.workspace = true
1010
log.workspace = true
11-
tempdir.workspace = true
11+
tempfile.workspace = true
1212
toml.workspace = true
1313

1414
[lints]

crates/xtask/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ fn main() {
152152
cmd(["cargo", "install", "--path", "crates/cargo-gpu"]).unwrap();
153153

154154
log::info!("setup project");
155-
let dir = tempdir::TempDir::new("test-shader-output").unwrap();
155+
let dir = tempfile::TempDir::with_prefix("test-shader-output").unwrap();
156156
let mut overwriter = ShaderCrateTemplateCargoTomlWriter::new();
157157
overwriter.replace_output_dir(dir.path()).unwrap();
158158

0 commit comments

Comments
 (0)