[package]
name = "boa_fuzz"
version = "0.0.0"
publish = false
edition = "2021"

[package.metadata]
cargo-fuzz = true

[dependencies]
libfuzzer-sys = "0.4.7"

arbitrary = "1.3.2"
boa_ast = { path = "../../core/ast", features = ["arbitrary"] }
boa_engine = { path = "../../core/engine", features = ["fuzz"] }
boa_interner = { path = "../../core/interner", features = ["arbitrary"] }
boa_parser = { path = "../../core/parser" }

# Prevent this from interfering with workspaces
[workspace]
members = ["."]

[profile.release]
debug = 1

[[bin]]
name = "parser-idempotency"
path = "fuzz_targets/parser-idempotency.rs"
test = false
doc = false

[[bin]]
name = "vm-implied"
path = "fuzz_targets/vm-implied.rs"
test = false
doc = false

[[bin]]
name = "bytecompiler-implied"
path = "fuzz_targets/bytecompiler-implied.rs"
test = false
doc = false
[package.metadata.docs.rs]
all-features = true