Skip to content

Commit

Permalink
Allow the config file to live in .cargo (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
DJMcNab authored Jan 16, 2023
1 parent 782b9f7 commit 0168e6e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cargo-deny/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ impl KrateContext {
return Some(config_path);
}

config_path.pop();
config_path.push(".cargo/deny.toml");
if config_path.exists() {
return Some(config_path);
}

p = parent.parent();
}

Expand Down

0 comments on commit 0168e6e

Please sign in to comment.