Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ unicorn-engine = "2.0.1" # Used in libafl_unicorn
uuid = { version = "1.18.0", features = ["serde", "v4"] }
which = "8.0.0"
windows = "0.59.0"
z3 = { version = "0.18.2", default-features = false }
z3 = { git = "https://github.com/prove-rs/z3.rs", rev = "z3-v0.18.2", default-features = false, features = [
"bundled",
] }
fs2 = "0.4.3" # Used by OnDisk Corpus for file locking

[workspace.lints.rust]
Expand Down
5 changes: 3 additions & 2 deletions crates/libafl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ regex-syntax = { version = "0.8.4", optional = true } # For nautilus

fs2 = { workspace = true, optional = true } # used by OnDisk Corpus for file locking

z3 = { workspace = true, optional = true } # for concolic mutation

# optional-dev deps (change when target.'cfg(accessible(::std))'.test-dependencies will be stable)
serial_test = { workspace = true, optional = true, default-features = false, features = [
"logging",
Expand All @@ -313,8 +315,7 @@ mlua = { version = "0.10.3", features = [
], optional = true }

[target.'cfg(unix)'.dependencies]
libc = { workspace = true } # For (*nix) libc
z3 = { workspace = true, optional = true } # for concolic mutation
libc = { workspace = true } # For (*nix) libc

[target.'cfg(windows)'.dependencies]
windows = { workspace = true, features = [
Expand Down
3 changes: 3 additions & 0 deletions crates/libafl/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ fn nightly() {
fn nightly() {}

fn main() {
if cfg!(target_os = "windows") {
println!("cargo:rustc-link-lib=msvcrt");
}
println!("cargo:rustc-check-cfg=cfg(nightly)");
println!("cargo:rerun-if-changed=build.rs");
nightly();
Expand Down
4 changes: 2 additions & 2 deletions crates/libafl/src/corpus/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ pub mod cached;
#[cfg(feature = "std")]
pub use cached::CachedOnDiskCorpus;

#[cfg(all(feature = "cmin", unix))]
#[cfg(feature = "cmin")]
pub mod minimizer;

pub mod nop;
#[cfg(all(feature = "cmin", unix))]
#[cfg(feature = "cmin")]
pub use minimizer::*;
pub use nop::NopCorpus;

Expand Down
Loading