You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
about = "A `cargo` wrapper to fuzz Rust code with `LibAFL`",
68
68
author = "Andrea Fioraldi <andreafioraldi@gmail.com> and the LibAFL team"
69
69
)]
70
70
structOpt{
71
-
#[clap(
71
+
#[arg(
72
72
short,
73
73
long,
74
-
parse(try_from_str = Cores::from_cmdline),
74
+
value_parser = Cores::from_cmdline,
75
75
help = "Spawn a client in each of the provided cores. Broker runs in the 0th core. 'all' to select all available cores. 'none' to run a client without binding to any core. eg: '1,2-4,6' selects the cores 1,2,3,4,6.",
76
-
default_value = "all",
76
+
default_value = "1",
77
77
name = "CORES"
78
78
)]
79
79
cores:Cores,
80
80
81
-
#[clap(
81
+
#[arg(
82
82
short = 'p',
83
83
long,
84
84
help = "Choose the broker TCP port, otherwise pick one at random",
85
85
name = "PORT"
86
86
)]
87
87
broker_port:Option<u16>,
88
88
89
-
#[clap(
90
-
parse(try_from_str),
91
-
short = 'a',
92
-
long,
93
-
help = "Specify a remote broker",
94
-
name = "REMOTE"
95
-
)]
89
+
#[arg(short = 'a', long, help = "Specify a remote broker", name = "REMOTE")]
96
90
remote_broker_addr:Option<SocketAddr>,
97
91
98
-
#[clap(
99
-
parse(try_from_str),
100
-
short,
101
-
long,
102
-
help = "Set an initial corpus directory",
103
-
name = "INPUT"
104
-
)]
92
+
#[arg(short, long, help = "Set an initial corpus directory", name = "INPUT")]
105
93
input:Vec<PathBuf>,
106
94
107
-
#[clap(
95
+
#[arg(
108
96
short,
109
97
long,
110
-
parse(try_from_str),
111
98
help = "Set the output directory, default is ./out",
112
99
name = "OUTPUT",
113
100
default_value = "./out"
114
101
)]
115
102
output:PathBuf,
116
103
117
-
#[clap(
118
-
parse(try_from_str = timeout_from_millis_str),
104
+
#[arg(
105
+
value_parser = timeout_from_millis_str,
119
106
short,
120
107
long,
121
-
help = "Set the execuution timeout in milliseconds, default is 1000",
108
+
help = "Set the execution timeout in milliseconds, default is 1000",
122
109
name = "TIMEOUT",
123
110
default_value = "1000"
124
111
)]
125
112
timeout:Duration,
126
113
127
-
#[clap(
128
-
parse(from_os_str),
114
+
#[arg(
129
115
short = 'x',
130
116
long,
131
117
help = "Feed the fuzzer with an user-specified list of tokens (often called \"dictionary\")",
132
-
name = "TOKENS",
133
-
multiple = true
118
+
name = "TOKENS"
134
119
)]
135
120
tokens:Vec<PathBuf>,
136
121
137
-
#[clap(
122
+
#[arg(
138
123
long,
139
124
help = "Disable unicode in the UI (for old terminals)",
140
125
name = "DISABLE_UNICODE"
141
126
)]
142
127
disable_unicode:bool,
143
128
144
-
#[clap(
129
+
#[arg(
145
130
short = 'g',
146
131
long,
147
132
help = "Use GRIMOIRE, a mutator for text-based inputs",
0 commit comments