Skip to content

Commit 628b178

Browse files
committed
build: update cargo-bolero from 0.8.0 to 0.13.3
New `fuzz` profile is added because cargo-bolero now requires it and uses by default, while `--release` option is removed. Instructions for running AFL are removed from the README because it requires some system reconfiguration and I did not test it this time.
1 parent 823a16e commit 628b178

File tree

4 files changed

+74
-35
lines changed

4 files changed

+74
-35
lines changed

Cargo.lock

Lines changed: 68 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ opt-level = 1
1818
debug = 1
1919
opt-level = 0
2020

21+
[profile.fuzz]
22+
inherits = "test"
23+
2124
# Always optimize dependencies.
2225
# This does not apply to crates in the workspace.
2326
# <https://doc.rust-lang.org/cargo/reference/profiles.html#overrides>

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,25 +156,20 @@ $ cargo test -- --ignored
156156

157157
Install [`cargo-bolero`](https://github.com/camshaft/bolero) with
158158
```sh
159-
$ cargo install cargo-bolero@0.8.0
159+
$ cargo install cargo-bolero
160160
```
161161

162162
Run fuzzing tests with
163163
```sh
164164
$ cd fuzz
165-
$ cargo bolero test fuzz_mailparse --release=false -s NONE
165+
$ cargo bolero test fuzz_mailparse -s NONE
166166
```
167167

168168
Corpus is created at `fuzz/fuzz_targets/corpus`,
169169
you can add initial inputs there.
170170
For `fuzz_mailparse` target corpus can be populated with
171171
`../test-data/message/*.eml`.
172172

173-
To run with AFL instead of libFuzzer:
174-
```sh
175-
$ cargo bolero test fuzz_format_flowed --release=false -e afl -s NONE
176-
```
177-
178173
## Features
179174

180175
- `vendored`: When using Openssl for TLS, this bundles a vendored version.

fuzz/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2021"
66
license = "MPL-2.0"
77

88
[dev-dependencies]
9-
bolero = "0.8"
9+
bolero = "0.13.3"
1010

1111
[dependencies]
1212
mailparse = { workspace = true }

0 commit comments

Comments
 (0)