Skip to content

Commit a7ef5f4

Browse files
fuzz: fix release profile
I had to apply these changes for OSS-Fuzz to continue working. Specifically I needed to add `cargo-features = ['named-profiles']` and `inherits` for any profile other than `release`. However, I have also confirmed now that the building is done with optimized + debuginfo in OSS-Fuzz (`Finished release [optimized + debuginfo] target(s) in 37.59s`).
1 parent 44abc5f commit a7ef5f4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

fuzz/Cargo.toml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
cargo-features = ['named-profiles']
2+
13
[package]
24
name = "regex-fuzz"
35
version = "0.0.0"
@@ -22,14 +24,12 @@ members = ["."]
2224
name = "fuzz_regex_match"
2325
path = "fuzz_targets/fuzz_regex_match.rs"
2426

25-
[profile.debug]
26-
opt-level = 3
27-
debug = true
28-
2927
[profile.release]
3028
opt-level = 3
3129
debug = true
3230

31+
[profile.debug]
32+
inherits = "release"
33+
3334
[profile.test]
34-
opt-level = 3
35-
debug = true
35+
inherits = "release"

0 commit comments

Comments
 (0)