diff options
author | Aleksey Kladov <[email protected]> | 2018-09-16 10:54:24 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-09-16 11:07:39 +0100 |
commit | b5021411a84822cb3f1e3aeffad9550dd15bdeb6 (patch) | |
tree | 9dca564f8e51b298dced01c4ce669c756dce3142 /crates/libsyntax2/fuzz | |
parent | ba0bfeee12e19da40b5eabc8d0408639af10e96f (diff) |
rename all things
Diffstat (limited to 'crates/libsyntax2/fuzz')
-rw-r--r-- | crates/libsyntax2/fuzz/.gitignore | 4 | ||||
-rw-r--r-- | crates/libsyntax2/fuzz/Cargo.toml | 22 | ||||
-rw-r--r-- | crates/libsyntax2/fuzz/fuzz_targets/parser.rs | 9 |
3 files changed, 0 insertions, 35 deletions
diff --git a/crates/libsyntax2/fuzz/.gitignore b/crates/libsyntax2/fuzz/.gitignore deleted file mode 100644 index 572e03bdf..000000000 --- a/crates/libsyntax2/fuzz/.gitignore +++ /dev/null | |||
@@ -1,4 +0,0 @@ | |||
1 | |||
2 | target | ||
3 | corpus | ||
4 | artifacts | ||
diff --git a/crates/libsyntax2/fuzz/Cargo.toml b/crates/libsyntax2/fuzz/Cargo.toml deleted file mode 100644 index 916cd5b6f..000000000 --- a/crates/libsyntax2/fuzz/Cargo.toml +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | |||
2 | [package] | ||
3 | name = "libsyntax2-fuzz" | ||
4 | version = "0.0.1" | ||
5 | authors = ["Automatically generated"] | ||
6 | publish = false | ||
7 | |||
8 | [package.metadata] | ||
9 | cargo-fuzz = true | ||
10 | |||
11 | [dependencies.libsyntax2] | ||
12 | path = ".." | ||
13 | [dependencies.libfuzzer-sys] | ||
14 | git = "https://github.com/rust-fuzz/libfuzzer-sys.git" | ||
15 | |||
16 | # Prevent this from interfering with workspaces | ||
17 | [workspace] | ||
18 | members = ["."] | ||
19 | |||
20 | [[bin]] | ||
21 | name = "parser" | ||
22 | path = "fuzz_targets/parser.rs" | ||
diff --git a/crates/libsyntax2/fuzz/fuzz_targets/parser.rs b/crates/libsyntax2/fuzz/fuzz_targets/parser.rs deleted file mode 100644 index da87180bb..000000000 --- a/crates/libsyntax2/fuzz/fuzz_targets/parser.rs +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
1 | #![no_main] | ||
2 | #[macro_use] extern crate libfuzzer_sys; | ||
3 | extern crate libsyntax2; | ||
4 | |||
5 | fuzz_target!(|data: &[u8]| { | ||
6 | if let Ok(text) = std::str::from_utf8(data) { | ||
7 | libsyntax2::utils::check_fuzz_invariants(text) | ||
8 | } | ||
9 | }); | ||