mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
a37cd5ad43
As described in #61, fuzz testing some parts of this would be ~~fun~~ helpful. So, I started with the most trivial fuzzer I could think of: Put random stuff into File::parse and see what happens. To speed things up, I also did cp src/**/*.rs fuzz/corpus/parser/ in the `crates/libsyntax2/` directory (running the fuzzer once will generate the necessary directories).
22 lines
403 B
TOML
22 lines
403 B
TOML
|
|
[package]
|
|
name = "libsyntax2-fuzz"
|
|
version = "0.0.1"
|
|
authors = ["Automatically generated"]
|
|
publish = false
|
|
|
|
[package.metadata]
|
|
cargo-fuzz = true
|
|
|
|
[dependencies.libsyntax2]
|
|
path = ".."
|
|
[dependencies.libfuzzer-sys]
|
|
git = "https://github.com/rust-fuzz/libfuzzer-sys.git"
|
|
|
|
# Prevent this from interfering with workspaces
|
|
[workspace]
|
|
members = ["."]
|
|
|
|
[[bin]]
|
|
name = "parser"
|
|
path = "fuzz_targets/parser.rs"
|