move folders

This commit is contained in:
Andrea Fioraldi 2020-11-22 20:17:39 +01:00
parent cb55ff1e97
commit 1ec34dbaa8
26 changed files with 39 additions and 2 deletions

View File

@ -26,7 +26,7 @@ pub trait StateMetadata: Debug {
pub trait State<C, E, I, R>: HasCorpus<C, I, R>
where
C: Corpus<I>,
C: Corpus<I, R>,
E: Executor<I>,
I: Input,
{

14
afl_derives/Cargo.toml Normal file
View File

@ -0,0 +1,14 @@
[package]
name = "afl_derives"
version = "0.1.0"
authors = ["Andrea Fioraldi <andreafioraldi@gmail.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
syn = "0.15"
quote = "0.6"
[lib]
proc-macro = true

23
afl_derives/src/lib.rs Normal file
View File

@ -0,0 +1,23 @@
#[macro_use]
extern crate quote;
#[macro_use]
extern crate syn;
extern crate proc_macro;
use proc_macro::TokenStream;
use syn::DeriveInput;
#[proc_macro_derive(MyMacro)]
pub fn my_macro(input: TokenStream) -> TokenStream {
// Parse the input tokens into a syntax tree
let input = parse_macro_input!(input as DeriveInput);
// Build the output, possibly using quasi-quotation
let expanded = quote! {
// ...
};
// Hand the output tokens back to the compiler
TokenStream::from(expanded)
}

View File

@ -11,7 +11,7 @@ default = ["std"]
std = []
[dependencies]
afl = { path = "../../" }
afl = { path = "../../afl/" }
[lib]
crate-type = ["staticlib", "cdylib"]