mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 18:03:51 +01:00
bc7736bc99
# Description This PR adds a fuzzer for the nu-path and the nu-parser crate. Now you can go to `crates/nu-path/fuzz`/`crates/nu-parser/fuzz` and run `cargo fuzz` to find crashes. https://github.com/nushell/nushell/issues/10365 and #9417 was found by this --------- Co-authored-by: sholderbach <sholderbach@users.noreply.github.com>
30 lines
431 B
TOML
30 lines
431 B
TOML
[package]
|
|
name = "nu-parser-fuzz"
|
|
version = "0.0.0"
|
|
publish = false
|
|
edition = "2021"
|
|
|
|
[package.metadata]
|
|
cargo-fuzz = true
|
|
|
|
[dependencies]
|
|
libfuzzer-sys = "0.4"
|
|
nu-protocol = { path = "../../nu-protocol" }
|
|
|
|
|
|
[dependencies.nu-parser]
|
|
path = ".."
|
|
|
|
# Prevent this from interfering with workspaces
|
|
[workspace]
|
|
members = ["."]
|
|
|
|
[profile.release]
|
|
debug = 1
|
|
|
|
[[bin]]
|
|
name = "parse"
|
|
path = "fuzz_targets/parse.rs"
|
|
test = false
|
|
doc = false
|