Fix libafl_libfuzzer publish (#1475)
* fixup build * allow dirty --------- Co-authored-by: Addison Crump <addison.crump@cispa.de>
This commit is contained in:
parent
062ae9d544
commit
e66eb33e96
@ -9,6 +9,14 @@ keywords = ["fuzzing", "testing", "security"]
|
||||
edition = "2021"
|
||||
categories = ["development-tools::testing", "fuzzing"]
|
||||
|
||||
include = [
|
||||
"/src",
|
||||
"/Cargo.toml",
|
||||
"/build.rs",
|
||||
"/libafl_libfuzzer_runtime",
|
||||
"!/libafl_libfuzzer_runtime/target"
|
||||
]
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[build-dependencies]
|
||||
@ -29,7 +37,6 @@ libfuzzer-sys = { version = "0.4.7", default-features = false }
|
||||
document-features = { version = "0.2" }
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["document-features"]
|
||||
all-features = true
|
||||
|
||||
rustdoc-args = [
|
||||
|
@ -37,6 +37,8 @@ fn main() {
|
||||
.env("PATH", std::env::var_os("PATH").unwrap())
|
||||
.current_dir(&lib_src);
|
||||
|
||||
let _ = std::fs::rename(lib_src.join("Cargo.toml.orig"), lib_src.join("Cargo.toml"));
|
||||
|
||||
command.arg("build");
|
||||
|
||||
let mut features = vec!["serdeany_autoreg"];
|
||||
|
@ -31,9 +31,9 @@ path = "src/lib.rs"
|
||||
crate-type = ["staticlib", "rlib"]
|
||||
|
||||
[dependencies]
|
||||
libafl = { path = "../../libafl", default-features = false, features = ["std", "derive", "llmp_compression", "rand_trait", "errors_backtrace", "regex", "serdeany_autoreg", "tui_monitor"] }
|
||||
libafl_bolts = { path = "../../libafl_bolts", default-features = false, features = ["std", "derive", "llmp_compression", "rand_trait", "errors_backtrace"] }
|
||||
libafl_targets = { path = "../../libafl_targets", features = ["sancov_8bit", "sancov_cmplog", "libfuzzer", "libfuzzer_oom", "libfuzzer_define_run_driver", "sanitizers_flags"] }
|
||||
libafl = { version = "0.11", default-features = false, features = ["std", "derive", "llmp_compression", "rand_trait", "errors_backtrace", "regex", "serdeany_autoreg", "tui_monitor"] }
|
||||
libafl_bolts = { version = "0.11", default-features = false, features = ["std", "derive", "llmp_compression", "rand_trait", "errors_backtrace"] }
|
||||
libafl_targets = { version = "0.11", features = ["sancov_8bit", "sancov_cmplog", "libfuzzer", "libfuzzer_oom", "libfuzzer_define_run_driver", "sanitizers_flags"] }
|
||||
|
||||
ahash = { version = "0.8.3", default-features = false }
|
||||
libc = "0.2.139"
|
||||
|
7
libafl_libfuzzer/publish.sh
Executable file
7
libafl_libfuzzer/publish.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
|
||||
mv libafl_libfuzzer_runtime/Cargo.toml libafl_libfuzzer_runtime/Cargo.toml.orig
|
||||
cargo publish --allow-dirty --no-verify "$@"
|
||||
mv libafl_libfuzzer_runtime/Cargo.toml.orig libafl_libfuzzer_runtime/Cargo.toml
|
@ -78,5 +78,5 @@ cargo publish "$@"
|
||||
cd ../.. || exit 1
|
||||
|
||||
cd libafl_libfuzzer
|
||||
cargo publish "$@"
|
||||
cd ../.. || exit 1
|
||||
./publish.sh "$@"
|
||||
cd .. || exit 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user