-
Notifications
You must be signed in to change notification settings - Fork 415
/
Cargo.toml
104 lines (82 loc) · 2.39 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
[package]
name = "regex-fuzz"
version = "0.0.0"
authors = [
"The Rust Project Developers",
"David Korczynski <david@adalogics.com>",
"Addison Crump <me@addisoncrump.info>",
"Andrew Gallant <jamslam@gmail.com>",
]
publish = false
edition = "2021"
[package.metadata]
cargo-fuzz = true
[dependencies]
arbitrary = { version = "1.3.0", features = ["derive"] }
libfuzzer-sys = { version = "0.4.1", features = ["arbitrary-derive"] }
regex = { path = "..", features = ["logging"] }
regex-automata = { path = "../regex-automata", features = ["logging"] }
regex-lite = { path = "../regex-lite" }
regex-syntax = { path = "../regex-syntax", features = ["arbitrary"] }
[dependencies.env_logger]
# Note that this is currently using an older version because of the dependency
# tree explosion that happened in 0.10.
version = "0.9.3"
default-features = false
features = ["atty", "humantime", "termcolor"]
# Prevent this from interfering with workspaces
[workspace]
members = ["."]
# NOTE: If you add a new fuzzer below, please make sure to add it to the
# oss-fuzz-build.sh script, otherwise it won't get run in OSS-fuzz.
[[bin]]
name = "fuzz_regex_match"
path = "fuzz_targets/fuzz_regex_match.rs"
[[bin]]
name = "fuzz_regex_lite_match"
path = "fuzz_targets/fuzz_regex_lite_match.rs"
[[bin]]
name = "fuzz_regex_automata_deserialize_dense_dfa"
path = "fuzz_targets/fuzz_regex_automata_deserialize_dense_dfa.rs"
[[bin]]
name = "fuzz_regex_automata_deserialize_sparse_dfa"
path = "fuzz_targets/fuzz_regex_automata_deserialize_sparse_dfa.rs"
[[bin]]
name = "ast_roundtrip"
path = "fuzz_targets/ast_roundtrip.rs"
[[bin]]
name = "ast_fuzz_match"
path = "fuzz_targets/ast_fuzz_match.rs"
[[bin]]
name = "ast_fuzz_regex"
path = "fuzz_targets/ast_fuzz_regex.rs"
[[bin]]
name = "ast_fuzz_match_bytes"
path = "fuzz_targets/ast_fuzz_match_bytes.rs"
[[bin]]
name = "ast_diff_default"
path = "fuzz_targets/ast_diff_default.rs"
[[bin]]
name = "ast_diff_dense_dfa"
path = "fuzz_targets/ast_diff_dense_dfa.rs"
[[bin]]
name = "ast_diff_onepass_dfa"
path = "fuzz_targets/ast_diff_onepass_dfa.rs"
[[bin]]
name = "ast_diff_sparse_dfa"
path = "fuzz_targets/ast_diff_sparse_dfa.rs"
[[bin]]
name = "ast_diff_hybrid"
path = "fuzz_targets/ast_diff_hybrid.rs"
[[bin]]
name = "ast_diff_nfas"
path = "fuzz_targets/ast_diff_nfas.rs"
[profile.release]
opt-level = 3
debug = true
[profile.dev]
opt-level = 3
debug = true
[profile.test]
opt-level = 3
debug = true