Skip to content

Commit 33a7ab6

Browse files
authored
Use .cargo/config.toml instead of .cargo/config (#106)
``` warning: `/macrotest/test-project/target/tests/test-project/macrotest000/.cargo/config` is deprecated in favor of `config.toml` note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml` ```
1 parent f41f71e commit 33a7ab6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/expand.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ fn prepare(tests: &[ExpandedTest]) -> Result<Project> {
229229
}
230230

231231
fs::create_dir_all(path!(project.dir / ".cargo"))?;
232-
fs::write(path!(project.dir / ".cargo" / "config"), config_toml)?;
232+
fs::write(path!(project.dir / ".cargo" / "config.toml"), config_toml)?;
233233
fs::write(path!(project.dir / "Cargo.toml"), manifest_toml)?;
234234
fs::write(path!(project.dir / "main.rs"), b"fn main() {}\n")?;
235235

src/path.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ fn test_path_macro() {
4141
dir: PathBuf::from("../target/tests"),
4242
};
4343

44-
let cargo_dir = path!(project.dir / ".cargo" / "config");
45-
assert_eq!(cargo_dir, Path::new("../target/tests/.cargo/config"));
44+
let cargo_dir = path!(project.dir / ".cargo" / "config.toml");
45+
assert_eq!(cargo_dir, Path::new("../target/tests/.cargo/config.toml"));
4646
}

0 commit comments

Comments
 (0)