Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 1 addition & 63 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ semver = "1.0.28"
serde = "1.0.228"
serde_json = "1.0.149"
syn = { version = "2.0.117", features = ["full"] }
tempdir = "0.3.7"
tempfile = "3.8.1"
thiserror = "2.0.18"
trybuild = "1.0.116"
unicode-ident = "1.0.24"
Expand Down
2 changes: 1 addition & 1 deletion cargo-typify/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ schemars = { workspace = true }
assert_cmd = { workspace = true }
expectorate = { workspace = true }
newline-converter = { workspace = true }
tempdir = { workspace = true }
tempfile = { workspace = true }
16 changes: 8 additions & 8 deletions cargo-typify/tests/integration.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
use expectorate::assert_contents;
use newline_converter::dos2unix;
use tempdir::TempDir;
use tempfile::TempDir;

#[test]
fn test_simple() {
let input = concat!(env!("CARGO_MANIFEST_DIR"), "/../example.json");

let temp = TempDir::new("cargo-typify").unwrap();
let temp = TempDir::new().unwrap();
let input_file = temp.path().join("simple.json");
std::fs::copy(input, &input_file).unwrap();

Expand All @@ -26,7 +26,7 @@ fn test_simple() {
fn test_default_output() {
let input = concat!(env!("CARGO_MANIFEST_DIR"), "/../example.json");

let temp = TempDir::new("cargo-typify").unwrap();
let temp = TempDir::new().unwrap();
let output_file = temp.path().join("output.rs");

assert_cmd::cargo::cargo_bin_cmd!()
Expand Down Expand Up @@ -59,7 +59,7 @@ fn test_no_builder_stdout() {
fn test_builder() {
let input = concat!(env!("CARGO_MANIFEST_DIR"), "/../example.json");

let temp = TempDir::new("cargo-typify").unwrap();
let temp = TempDir::new().unwrap();
let output_file = temp.path().join("output.rs");

assert_cmd::cargo::cargo_bin_cmd!()
Expand All @@ -82,7 +82,7 @@ fn test_builder() {
fn test_derive() {
let input = concat!(env!("CARGO_MANIFEST_DIR"), "/../example.json");

let temp = TempDir::new("cargo-typify").unwrap();
let temp = TempDir::new().unwrap();
let output_file = temp.path().join("output.rs");

assert_cmd::cargo::cargo_bin_cmd!()
Expand All @@ -107,7 +107,7 @@ fn test_derive() {
fn test_attr() {
let input = concat!(env!("CARGO_MANIFEST_DIR"), "/../example.json");

let temp = TempDir::new("cargo-typify").unwrap();
let temp = TempDir::new().unwrap();
let output_file = temp.path().join("output.rs");

assert_cmd::cargo::cargo_bin_cmd!()
Expand All @@ -132,7 +132,7 @@ fn test_attr() {
fn test_multi_derive() {
let input = concat!(env!("CARGO_MANIFEST_DIR"), "/../example.json");

let temp = TempDir::new("cargo-typify").unwrap();
let temp = TempDir::new().unwrap();
let output_file = temp.path().join("output.rs");

assert_cmd::cargo::cargo_bin_cmd!()
Expand Down Expand Up @@ -173,7 +173,7 @@ fn test_help() {
fn test_btree_map() {
let input = concat!(env!("CARGO_MANIFEST_DIR"), "/../example.json");

let temp = TempDir::new("cargo-typify").unwrap();
let temp = TempDir::new().unwrap();
let output_file = temp.path().join("output.rs");

assert_cmd::cargo::cargo_bin_cmd!()
Expand Down
Loading