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:
1272
src/wasm-lib/kcl/fuzz/Cargo.lock
generated
1272
src/wasm-lib/kcl/fuzz/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -19,12 +19,15 @@ path = ".."
|
||||
[workspace]
|
||||
members = ["."]
|
||||
|
||||
[workspace.lints.clippy]
|
||||
assertions_on_result_states = "warn"
|
||||
dbg_macro = "warn"
|
||||
iter_over_hash_type = "warn"
|
||||
lossy_float_literal = "warn"
|
||||
|
||||
[profile.release]
|
||||
debug = 1
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[[bin]]
|
||||
name = "parser"
|
||||
path = "fuzz_targets/parser.rs"
|
||||
|
@ -3,7 +3,5 @@
|
||||
use libfuzzer_sys::fuzz_target;
|
||||
|
||||
fuzz_target!(|data: &str| {
|
||||
if let Ok(v) = kcl_lib::token::lexer(data) {
|
||||
let _ = kcl_lib::parser::Parser::new(v).ast();
|
||||
}
|
||||
let _ = kcl_lib::Program::parse(data);
|
||||
});
|
||||
|
Reference in New Issue
Block a user