
* Use expect instead of allow, remove unnecessary allows * Remove more whitelist lint warnings * tranisitioning more subprojects * Re-add some necessary allows * Re-add more required allows * Some more windows clippy fixes * Re-add more whitelist items for expect * More clippy whitelist fun * Reset changes to generated files * Reset generated files to correct version * Move libafl_concolic to expect instead of allow * Move libafl_frida to expect from allow * Move libafl_libfuzzer to expect from allow * Remove more whitelist items for macOS * Fix unknown clippy allow * Remove more unnecessary allow statements * moving fuzzers * Remove mistakenly added subdirs * fixing imports * Remove more unnecessary whitelisted lints * Fix test for /home/ubuntu/LibAFL/fuzzers/inprocess/libfuzzer_libpng_accounting * More clippy improvements for libafl_qemu * fmt * Some pedantic options * Fix more stuff * Remove Little-CMS again * Add note to static_mut_refs * Reset the changed testing routine since it is unnecessary
26 lines
750 B
Rust
26 lines
750 B
Rust
use std::{env, path::Path};
|
|
|
|
#[expect(clippy::too_many_lines)]
|
|
fn main() {
|
|
let out_dir = env::var_os("OUT_DIR").unwrap();
|
|
|
|
println!("cargo:rerun-if-changed=src/harness_wrap.h");
|
|
println!("cargo:rerun-if-changed=src/harness_wrap.cpp");
|
|
|
|
let build = bindgen::builder()
|
|
.header("src/harness_wrap.h")
|
|
.generate_comments(true)
|
|
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
|
|
.generate()
|
|
.expect("Couldn't generate the harness wrapper!");
|
|
|
|
build
|
|
.write_to_file(Path::new(&out_dir).join("harness_wrap.rs"))
|
|
.expect("Couldn't write the harness wrapper!");
|
|
|
|
cc::Build::new()
|
|
.cpp(true)
|
|
.file("src/harness_wrap.cpp")
|
|
.compile("harness_wrap");
|
|
}
|