we need nightly yeeee
This commit is contained in:
parent
76e2226978
commit
7771071491
@ -14,9 +14,10 @@ default = ["std"]
|
|||||||
std = []
|
std = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
hashbrown = "0.9" # A faster hashmap, nostd compatible
|
hashbrown = { version = "0.9", features = ["serde"] } # A faster hashmap, nostd compatible
|
||||||
libc = "0.2" # For (*nix) libc
|
libc = "0.2" # For (*nix) libc
|
||||||
num = "*"
|
num = "*"
|
||||||
xxhash-rust = { version = "0.8.0-beta.5", features = ["xxh3"] } # xxh3 hashing for rust
|
xxhash-rust = { version = "0.8.0-beta.5", features = ["xxh3"] } # xxh3 hashing for rust
|
||||||
serde = { version = "1.0", default-features = false, features = ["alloc"] } # serialization lib
|
serde = { version = "1.0", default-features = false, features = ["alloc"] } # serialization lib
|
||||||
|
serde_traitobject = { version = "0.2.7" } # trait obj serialization lib
|
||||||
postcard = "0.5.1" # no_std compatible serde serialization fromat
|
postcard = "0.5.1" # no_std compatible serde serialization fromat
|
@ -1,12 +1,13 @@
|
|||||||
use alloc::boxed::Box;
|
use alloc::boxed::Box;
|
||||||
use alloc::rc::Rc;
|
use alloc::rc::Rc;
|
||||||
use alloc::string::String;
|
use alloc::string::String;
|
||||||
|
use core::any::Any;
|
||||||
use core::cell::RefCell;
|
use core::cell::RefCell;
|
||||||
use core::convert::Into;
|
use core::convert::Into;
|
||||||
use core::default::Default;
|
use core::default::Default;
|
||||||
use core::option::Option;
|
use core::option::Option;
|
||||||
use hashbrown::HashMap;
|
use hashbrown::HashMap;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde_traitobject::{Deserialize, Serialize};
|
||||||
|
|
||||||
use crate::inputs::Input;
|
use crate::inputs::Input;
|
||||||
use crate::AflError;
|
use crate::AflError;
|
||||||
@ -17,7 +18,7 @@ use crate::AflError;
|
|||||||
|
|
||||||
// TODO: Give example
|
// TODO: Give example
|
||||||
/// Metadata for a testcase
|
/// Metadata for a testcase
|
||||||
pub trait TestcaseMetadata {
|
pub trait TestcaseMetadata: Any + Serialize + Deserialize<'static> {
|
||||||
/// The name of this metadata - used to find it in the list of avaliable metadatas
|
/// The name of this metadata - used to find it in the list of avaliable metadatas
|
||||||
fn name(&self) -> &'static str;
|
fn name(&self) -> &'static str;
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@ use alloc::vec::Vec;
|
|||||||
use core::cell::RefCell;
|
use core::cell::RefCell;
|
||||||
use core::marker::PhantomData;
|
use core::marker::PhantomData;
|
||||||
use num::Integer;
|
use num::Integer;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
use crate::corpus::{Testcase, TestcaseMetadata};
|
use crate::corpus::{Testcase, TestcaseMetadata};
|
||||||
use crate::inputs::Input;
|
use crate::inputs::Input;
|
||||||
@ -165,6 +166,7 @@ where
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Serialize, Deserialize)]
|
||||||
pub struct MapNoveltiesMetadata {
|
pub struct MapNoveltiesMetadata {
|
||||||
novelties: Vec<usize>,
|
novelties: Vec<usize>,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user