biome/fuzz/Cargo.toml
2025-03-02 10:18:47 +00:00

115 lines
2.6 KiB
TOML

[package]
name = "rome_fuzz"
version = "0.0.0"
authors = ["Addison Crump <research@addisoncrump.info>"]
publish = false
edition = "2024"
[features]
default = ["libfuzzer"]
full-idempotency = []
libfuzzer = ["libfuzzer-sys/link_libfuzzer"]
rome_all = []
[package.metadata]
cargo-fuzz = true
[dependencies]
libfuzzer-sys = { git = "https://github.com/rust-fuzz/libfuzzer", default-features = false }
biome_analyze = { path = "../crates/biome_analyze" }
biome_diagnostics = { path = "../crates/biome_diagnostics" }
biome_formatter = { path = "../crates/biome_formatter" }
biome_js_analyze = { path = "../crates/biome_js_analyze" }
biome_js_formatter = { path = "../crates/biome_js_formatter" }
biome_js_parser = { path = "../crates/biome_js_parser" }
biome_js_syntax = { path = "../crates/biome_js_syntax" }
biome_json_formatter = { path = "../crates/biome_json_formatter" }
biome_json_parser = { path = "../crates/biome_json_parser" }
biome_service = { path = "../crates/biome_service" }
similar = { workspace = true }
# Prevent this from interfering with workspaces
[workspace]
members = ["."]
[[bin]]
name = "rome_parse_all"
path = "fuzz_targets/rome_parse_all.rs"
required-features = ["rome_all"]
[[bin]]
name = "rome_parse_d_ts"
path = "fuzz_targets/rome_parse_d_ts.rs"
[[bin]]
name = "rome_parse_json"
path = "fuzz_targets/rome_parse_json.rs"
[[bin]]
name = "rome_parse_module"
path = "fuzz_targets/rome_parse_module.rs"
[[bin]]
name = "rome_parse_script"
path = "fuzz_targets/rome_parse_script.rs"
[[bin]]
name = "rome_parse_jsx"
path = "fuzz_targets/rome_parse_jsx.rs"
[[bin]]
name = "rome_parse_tsx"
path = "fuzz_targets/rome_parse_tsx.rs"
[[bin]]
name = "rome_parse_typescript"
path = "fuzz_targets/rome_parse_typescript.rs"
[[bin]]
name = "rome_format_all"
path = "fuzz_targets/rome_format_all.rs"
required-features = ["rome_all"]
[[bin]]
name = "rome_format_d_ts"
path = "fuzz_targets/rome_format_d_ts.rs"
[[bin]]
name = "rome_format_json"
path = "fuzz_targets/rome_format_json.rs"
[[bin]]
name = "rome_format_module"
path = "fuzz_targets/rome_format_module.rs"
[[bin]]
name = "rome_format_script"
path = "fuzz_targets/rome_format_script.rs"
[[bin]]
name = "rome_format_jsx"
path = "fuzz_targets/rome_format_jsx.rs"
[[bin]]
name = "rome_format_tsx"
path = "fuzz_targets/rome_format_tsx.rs"
[[bin]]
name = "rome_format_typescript"
path = "fuzz_targets/rome_format_typescript.rs"
# enabling debug seems to cause a massive use of RAM (>12GB)
[profile.release]
opt-level = 3
#debug = true
debug = false
[profile.dev]
opt-level = 3
#debug = true
debug = false
[profile.test]
opt-level = 3
#debug = true
debug = false