Fix fuzz crate lints and update deps (#4873)

* Fix fuzz to use new API

* Fix fuzz Cargo.toml lints and update lock
This commit is contained in:
Jonathan Tran
2025-01-02 14:05:46 -05:00
committed by GitHub
parent 30c2acd18a
commit 3d27f0191b
3 changed files with 878 additions and 407 deletions

File diff suppressed because it is too large Load Diff

View File

@ -19,12 +19,15 @@ path = ".."
[workspace] [workspace]
members = ["."] members = ["."]
[workspace.lints.clippy]
assertions_on_result_states = "warn"
dbg_macro = "warn"
iter_over_hash_type = "warn"
lossy_float_literal = "warn"
[profile.release] [profile.release]
debug = 1 debug = 1
[lints]
workspace = true
[[bin]] [[bin]]
name = "parser" name = "parser"
path = "fuzz_targets/parser.rs" path = "fuzz_targets/parser.rs"

View File

@ -3,7 +3,5 @@
use libfuzzer_sys::fuzz_target; use libfuzzer_sys::fuzz_target;
fuzz_target!(|data: &str| { fuzz_target!(|data: &str| {
if let Ok(v) = kcl_lib::token::lexer(data) { let _ = kcl_lib::Program::parse(data);
let _ = kcl_lib::parser::Parser::new(v).ast();
}
}); });