File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ version = "0.0.0"
7
7
8
8
[dependencies ]
9
9
anyhow = " 1.0"
10
+ clap = { version = " 4.5" , features = [" derive" ] }
10
11
env_logger = " 0.11.5"
11
12
heck = " 0.5"
12
13
lazy_static = " 1.4.0"
@@ -15,7 +16,6 @@ once_cell = "1.12"
15
16
proc-macro2 = " 1.0"
16
17
quote = ' 1.0'
17
18
sourcefile = " 0.2"
18
- structopt = " 0.3.9"
19
19
syn = { version = ' 2.0' , features = [' extra-traits' , ' full' ] }
20
20
wasm-bindgen-backend = { path = " ../backend" }
21
21
weedle = { git = " https://github.com/rustwasm/weedle.git" }
Original file line number Diff line number Diff line change 1
1
mod update_cargo_toml;
2
2
3
3
use anyhow:: Result ;
4
+ use clap:: Parser ;
4
5
use std:: path:: PathBuf ;
5
- use structopt:: StructOpt ;
6
6
use update_cargo_toml:: update_cargo_toml_features;
7
7
8
- #[ derive( StructOpt , Debug ) ]
8
+ #[ derive( Parser , Debug ) ]
9
9
#[ structopt(
10
10
name = "wasm-bindgen-webidl" ,
11
11
about = "Converts WebIDL into wasm-bindgen compatible code."
12
12
) ]
13
13
struct Opt {
14
- #[ structopt( parse( from_os_str) ) ]
15
14
input_dir : PathBuf ,
16
15
17
- #[ structopt( parse( from_os_str) ) ]
18
16
output_dir : PathBuf ,
19
17
20
- #[ structopt ( long) ]
18
+ #[ clap ( long) ]
21
19
no_features : bool ,
22
20
23
- #[ structopt( parse( from_os_str) ) ]
24
21
cargo_toml_path : Option < PathBuf > ,
25
22
}
26
23
27
24
fn main ( ) -> Result < ( ) > {
28
25
env_logger:: init ( ) ;
29
26
30
- let opt = Opt :: from_args ( ) ;
27
+ let opt = Opt :: parse ( ) ;
31
28
32
29
let features = !opt. no_features ;
33
30
You can’t perform that action at this time.
0 commit comments