Files
rustfs/fuzz/Cargo.toml
T
Chris An d8e2353825 fix(ci): prevent fuzz build OOM and stabilize workspace/http3 tests (#9856)
* fix(ci): prevent fuzz build OOM and stabilize workspace/http3 tests

* fix(fuzz): split fuzz build codegen units and bound dep opt-level/lld threads
2026-12-02 19:48:58 +08:00

207 lines
4.7 KiB
TOML

[package]
name = "rustfs-fuzz"
version = "0.0.0"
edition = "2024"
publish = false
[package.metadata]
cargo-fuzz = true
[workspace]
[lib]
name = "rustfs_fuzz"
path = "src/lib.rs"
[dependencies]
arbitrary = { version = "1", features = ["derive"] }
bytes = "1.12.2"
http = "1.6.0"
jiff = { version = "1.0.2", features = ["serde"] }
libfuzzer-sys = "0.4"
quick-xml = { version = "0.42.0", features = ["serialize", "serde-types", "encoding"] }
rustfs-ecstore = { path = "../crates/ecstore", features = ["fuzzing"] }
rustfs-filemeta = { path = "../crates/filemeta" }
rustfs-kms = { path = "../crates/kms", default-features = false, features = ["fuzzing"] }
rustfs-lifecycle = { path = "../crates/lifecycle" }
rustfs-notify = { path = "../crates/notify" }
rustfs-policy = { path = "../crates/policy" }
rustfs-rio = { path = "../crates/rio" }
rustfs-s3select-api = { path = "../crates/s3select-api", default-features = false }
rustfs-s3select-query = { path = "../crates/s3select-query", default-features = false }
rustfs-security-governance = { path = "../crates/security-governance" }
rustfs-signer = { path = "../crates/signer" }
rustfs-sse = { path = "../crates/sse", default-features = false }
rustfs-utils = { path = "../crates/utils", features = ["compress", "path", "http"] }
serde = { version = "1.0.229", features = ["derive"] }
serde_json = "1"
sha2 = "0.11.1"
time = { version = "0.3.55", features = ["macros"] }
tokio = { version = "1.54.1", features = ["rt", "io-util", "macros"] }
uuid = { version = "1.29.3", features = ["v4", "serde"] }
[patch.crates-io]
hyper = { path = "../vendor/hyper" }
nkeys = { path = "../vendor/nkeys" }
[profile.dev]
debug = "line-tables-only"
[profile.dev.package."*"]
debug = false
# `cargo-fuzz build` compiles in release mode with `--config profile.release.debug="line-tables-only"`.
# Keep third-party dependencies (DataFusion, Arrow, Parquet, AWS SDK) at opt-level 1 without DWARF
# debuginfo so instrumented builds stay within the runner memory and artifact budgets, while
# preserving full optimization and line tables for the fuzz crate and RustFS workspace crates.
[profile.release]
opt-level = 3
debug = "line-tables-only"
[profile.release.package."*"]
opt-level = 1
debug = false
[profile.release.package.rustfs-ecstore]
opt-level = 3
debug = "line-tables-only"
[profile.release.package.rustfs-filemeta]
opt-level = 3
debug = "line-tables-only"
[profile.release.package.rustfs-kms]
opt-level = 3
debug = "line-tables-only"
[profile.release.package.rustfs-lifecycle]
opt-level = 3
debug = "line-tables-only"
[profile.release.package.rustfs-notify]
opt-level = 3
debug = "line-tables-only"
[profile.release.package.rustfs-policy]
opt-level = 3
debug = "line-tables-only"
[profile.release.package.rustfs-rio]
opt-level = 3
debug = "line-tables-only"
[profile.release.package.rustfs-s3select-api]
opt-level = 3
debug = "line-tables-only"
[profile.release.package.rustfs-s3select-query]
opt-level = 3
debug = "line-tables-only"
[profile.release.package.rustfs-security-governance]
opt-level = 3
debug = "line-tables-only"
[profile.release.package.rustfs-signer]
opt-level = 3
debug = "line-tables-only"
[profile.release.package.rustfs-sse]
opt-level = 3
debug = "line-tables-only"
[profile.release.package.rustfs-utils]
opt-level = 3
debug = "line-tables-only"
[[bin]]
name = "bucket_validation"
path = "fuzz_targets/bucket_validation.rs"
test = false
doc = false
bench = false
[[bin]]
name = "archive_extract"
path = "fuzz_targets/archive_extract.rs"
test = false
doc = false
bench = false
[[bin]]
name = "local_metadata"
path = "fuzz_targets/local_metadata.rs"
test = false
doc = false
bench = false
[[bin]]
name = "policy_ingress"
path = "fuzz_targets/policy_ingress.rs"
test = false
doc = false
bench = false
[[bin]]
name = "path_containment"
path = "fuzz_targets/path_containment.rs"
test = false
doc = false
bench = false
[[bin]]
name = "sigv4_request"
path = "fuzz_targets/sigv4_request.rs"
test = false
doc = false
bench = false
[[bin]]
name = "notify_xml"
path = "fuzz_targets/notify_xml.rs"
test = false
doc = false
bench = false
[[bin]]
name = "fuzz_filemeta_decode"
path = "fuzz_targets/fuzz_filemeta_decode.rs"
test = false
doc = false
bench = false
[[bin]]
name = "fuzz_bitrot_framing"
path = "fuzz_targets/fuzz_bitrot_framing.rs"
test = false
doc = false
bench = false
[[bin]]
name = "fuzz_iam_policy_eval"
path = "fuzz_targets/fuzz_iam_policy_eval.rs"
test = false
doc = false
bench = false
[[bin]]
name = "fuzz_kms_envelope"
path = "fuzz_targets/fuzz_kms_envelope.rs"
test = false
doc = false
bench = false
[[bin]]
name = "fuzz_s3_sigv4_and_xml"
path = "fuzz_targets/fuzz_s3_sigv4_and_xml.rs"
test = false
doc = false
bench = false
[[bin]]
name = "fuzz_s3_select_sql"
path = "fuzz_targets/fuzz_s3_select_sql.rs"
test = false
doc = false
bench = false