Skip to content

Commit

Permalink
Merge pull request #78 from alexanderkjall/replace-tempdir-with-tempfile
Browse files Browse the repository at this point in the history
replace tempdir crate with tempfile
  • Loading branch information
Michael-F-Bryan authored Apr 19, 2022
2 parents 96c4868 + 69bfde9 commit 0536fd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion include_dir/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ glob = { version = "0.3", optional = true }
include_dir_macros = { version = "^0.7.0", path = "../macros" }

[dev-dependencies]
tempdir = "0.3"
tempfile = "3"

[features]
default = []
Expand Down
12 changes: 2 additions & 10 deletions include_dir/tests/integration_test.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use include_dir::{include_dir, Dir};
use std::path::Path;
use tempdir::TempDir;
use tempfile::TempDir;

static PARENT_DIR: Dir<'_> = include_dir!("$CARGO_MANIFEST_DIR");

Expand All @@ -14,15 +14,7 @@ fn included_all_files_in_the_include_dir_crate() {

#[test]
fn extract_all_files() {
let tmpdir = TempDir::new(
format!(
"{}-{}-test",
env!("CARGO_PKG_NAME"),
env!("CARGO_PKG_VERSION")
)
.as_str(),
)
.unwrap();
let tmpdir = TempDir::new().unwrap();
let root = tmpdir.path();
PARENT_DIR.extract(root).unwrap();

Expand Down

0 comments on commit 0536fd6

Please sign in to comment.