Skip to content
Open
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
3 changes: 3 additions & 0 deletions .cargo/audit.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ ignore = [
"RUSTSEC-2020-0159", # `chrono` localtime_r segfault
]

show = ["unmaintained", "unsound"]
fatal = ["critical"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see where these option names come from, the advisories config section looks like it does not include them.


[output]
quiet = false
deny = ["warnings"]
3 changes: 3 additions & 0 deletions cargo-audit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,15 @@ But there may be situations where an upgrade isn't available and the advisory do

In these cases, you can ignore advisories using the `--ignore` option.


```
$ cargo audit --ignore RUSTSEC-2017-0001
```

This option can also be configured via the [`audit.toml`](./audit.toml.example) file.

Cargo audit can be configured using a file called [audit.toml](./.cargo/audit.toml) This file is optional, and the default settings will work well for most people.
Copy link
Member

@amousset amousset Aug 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The .cargo/audit.toml file in the repository is the file used for the project itself, and is not a documentation file. Documentation (like the line above does) should point to the example file audit.toml.example.


## Using `cargo audit` on Travis CI

To automatically run `cargo audit` on every build in Travis CI, you can add the following to your `.travis.yml`:
Expand Down