From fafa27a7e9045a750cb947d00c2526553156c5bd Mon Sep 17 00:00:00 2001 From: Andrea Fioraldi Date: Mon, 17 Apr 2023 18:16:29 +0200 Subject: [PATCH] serial_test as normal optional dep enabled with std (#1215) * sertial_test as a std and test only dependency * serial_test as normal optional dep enabled with std --- libafl/Cargo.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libafl/Cargo.toml b/libafl/Cargo.toml index e4a8674568..379ff7bf28 100644 --- a/libafl/Cargo.toml +++ b/libafl/Cargo.toml @@ -13,7 +13,7 @@ categories = ["development-tools::testing", "emulators", "embedded", "os", "no-s [features] default = ["std", "derive", "llmp_compression", "llmp_small_maps", "llmp_broker_timeouts", "rand_trait", "fork", "prelude", "gzip", "regex"] -std = ["serde_json", "serde_json/std", "hostname", "nix", "serde/std", "bincode", "wait-timeout", "byteorder", "once_cell", "uuid", "tui_monitor", "ctor", "backtrace", "uds"] # print, env, launcher ... support +std = ["serde_json", "serde_json/std", "hostname", "nix", "serde/std", "bincode", "wait-timeout", "byteorder", "once_cell", "uuid", "tui_monitor", "ctor", "backtrace", "uds", "serial_test"] # 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). rand_trait = ["rand_core"] # If set, libafl's rand implementations will implement `rand::Rng` @@ -52,7 +52,6 @@ rustversion = "1.0" [dev-dependencies] serde_json = { version = "1.0", default-features = false, features = ["alloc"] } -serial_test = "1" # clippy-suggested optimised byte counter bytecount = "0.6.3" @@ -106,6 +105,9 @@ concat-idents = { version = "1.1.3", optional = true } libcasr = { version = "2.5", optional = true} +# optional-dev deps (change when target.'cfg(accessible(::std))'.test-dependencies will be stable) +serial_test = { version = "1", optional = true } + # AGPL # !!! this create requires nightly grammartec = { version = "0.3", optional = true }