Addison Crump 0727c80347
Add example for WASM (#1093)
* add baby_fuzzer for wasm targets

* elaborate in README

---------

Co-authored-by: Dominik Maier <domenukk@gmail.com>
Co-authored-by: Dongjia "toka" Zhang <tokazerkje@outlook.com>
2023-02-26 17:02:22 +01:00

36 lines
886 B
TOML

[package]
name = "baby_fuzzer_wasm"
version = "0.1.0"
authors = ["Addison Crump <research@addisoncrump.info>"]
edition = "2018"
[lib]
crate-type = ["cdylib", "rlib"]
[features]
default = ["console_error_panic_hook"]
[dependencies]
js-sys = "0.3"
wasm-bindgen = "0.2.63"
libafl = { path = "../../libafl", default-features = false }
# The `console_error_panic_hook` crate provides better debugging of panics by
# logging them with `console.error`. This is great for development, but requires
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
# code size when deploying.
console_error_panic_hook = { version = "0.1.6", optional = true }
[dependencies.web-sys]
version = "0.3"
features = ['console', 'Window', 'Performance', 'PerformanceTiming']
[dev-dependencies]
wasm-bindgen-test = "0.3.13"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1