Skip to content

Commit

Permalink
Replace the deprecated tempdir crate with the tempfile crate (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
swlynch99 authored Aug 26, 2024
1 parent 44cb81d commit 6459861
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 74 deletions.
82 changes: 10 additions & 72 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/durable-migrate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ optional = true
features = ["postgres"]

[dev-dependencies]
tempdir = "0.3.7"
tempfile = "3.12.0"
2 changes: 1 addition & 1 deletion crates/durable-migrate/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
//! use durable_migrate::{EmbedOptions, Migrator};
//!
//! fn main() {
//! # let tempdir = tempdir::TempDir::new("durable").expect("failed to create temp dir");
//! # let tempdir = tempfile::tempdir().expect("failed to create temp dir");
//! # let out_dir = tempdir.path();
//! # if cfg!(any()) {
//! let out_dir = PathBuf::from(std::env::var_os("OUT_DIR").unwrap());
Expand Down

0 comments on commit 6459861

Please sign in to comment.