mirror of
https://github.com/openharmony/third_party_rust_regex.git
synced 2026-07-01 21:33:59 -04:00
3b200d9c21
This fixes the oss-fuzz build.
Specifically, the build log[1] showed this error:
Step #3 - "compile-libfuzzer-address-x86_64": error: inherits must
not be specified in root profile dev
So we just remove it and inline the settings.
PR #817
[1] - https://oss-fuzz-build-logs.storage.googleapis.com/log-c9b61873-8950-4a50-a729-820d5617ff7a.txt
38 lines
568 B
TOML
38 lines
568 B
TOML
cargo-features = ['named-profiles']
|
|
|
|
[package]
|
|
name = "regex-fuzz"
|
|
version = "0.0.0"
|
|
authors = ["David Korczynski <david@adalogics.com>"]
|
|
publish = false
|
|
edition = "2018"
|
|
|
|
[package.metadata]
|
|
cargo-fuzz = true
|
|
|
|
[dependencies]
|
|
libfuzzer-sys = "0.4.1"
|
|
|
|
[dependencies.regex]
|
|
path = ".."
|
|
|
|
# Prevent this from interfering with workspaces
|
|
[workspace]
|
|
members = ["."]
|
|
|
|
[[bin]]
|
|
name = "fuzz_regex_match"
|
|
path = "fuzz_targets/fuzz_regex_match.rs"
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
debug = true
|
|
|
|
[profile.dev]
|
|
opt-level = 3
|
|
debug = true
|
|
|
|
[profile.test]
|
|
opt-level = 3
|
|
debug = true
|