Hide prelude behind feature flag (#782)
* Hide prelude behind feature flag * make prelude default
This commit is contained in:
parent
02c962de45
commit
b7d93a4bea
@ -20,4 +20,4 @@ opt-level = 3
|
||||
debug = true
|
||||
|
||||
[dependencies]
|
||||
libafl = { path = "../../libafl/" }
|
||||
libafl = { path = "../../libafl/", features = ["prelude"] }
|
||||
|
@ -12,7 +12,7 @@ edition = "2021"
|
||||
categories = ["development-tools::testing", "emulators", "embedded", "os", "no-std"]
|
||||
|
||||
[features]
|
||||
default = ["std", "derive", "llmp_compression", "rand_trait", "fork"]
|
||||
default = ["std", "derive", "llmp_compression", "rand_trait", "fork", "prelude"]
|
||||
std = ["serde_json", "serde_json/std", "hostname", "nix", "serde/std", "bincode", "wait-timeout", "regex", "byteorder", "once_cell", "uuid", "tui_monitor", "ctor", "backtrace"] # print, env, launcher ... support
|
||||
derive = ["libafl_derive"] # provide derive(SerdeAny) macro.
|
||||
fork = [] # uses the fork() syscall to spawn children, instead of launching a new command, if supported by the OS (has no effect on Windows, no_std).
|
||||
@ -20,6 +20,7 @@ rand_trait = ["rand_core"] # If set, libafl's rand implementations will implemen
|
||||
introspection = [] # Include performance statistics of the fuzzing pipeline
|
||||
concolic_mutation = ["z3"] # include a simple concolic mutator based on z3
|
||||
python = ["pyo3"]
|
||||
prelude = [] # Expose libafl::prelude for access without additional using directives
|
||||
tui_monitor = ["tui", "crossterm"] # enable TuiMonitor with crossterm
|
||||
cli = ["clap"] # expose bolts::cli
|
||||
qemu_cli = ["cli"]
|
||||
|
@ -425,6 +425,7 @@ impl From<pyo3::PyErr> for Error {
|
||||
impl std::error::Error for Error {}
|
||||
|
||||
/// The purpose of this module is to alleviate imports of many components by adding a glob import.
|
||||
#[cfg(feature = "prelude")]
|
||||
pub mod prelude {
|
||||
pub use super::{
|
||||
bolts::{bolts_prelude::*, *},
|
||||
|
Loading…
x
Reference in New Issue
Block a user