File tree 6 files changed +11
-11
lines changed
6 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ wasm-bindgen = { version = "0.2.78", optional = true }
29
29
30
30
[target .'cfg(not(target_arch = "wasm32"))' .dependencies ]
31
31
binary-install = { version = " 0.0.2" , optional = true }
32
- env_logger = { version = " 0.9 .0" , optional = true }
32
+ env_logger = { version = " 0.10 .0" , optional = true }
33
33
fs_extra = " 1.2.0"
34
34
lazy_static = " 1.4.0"
35
35
log = " 0.4.14"
@@ -38,7 +38,7 @@ walkdir = { version = "2.3.2", optional = true }
38
38
# NOTE: we don't depend on this crate but we need to activate this feature otherwise it's super slow
39
39
walrus = { version = " 0.19.0" , features = [" parallel" ] }
40
40
wasm-bindgen-cli-support = " 0.2.68"
41
- xtask-watch = { version = " 0.1.5 " }
41
+ xtask-watch = " 0.1.6 "
42
42
43
43
[target .'cfg(unix)' .dependencies ]
44
44
libc = " 0.2.112"
Original file line number Diff line number Diff line change 12
12
[ crates-url ] : https://crates.io/crates/xtask-wasm
13
13
[ docs-badge ] : https://docs.rs/xtask-wasm/badge.svg
14
14
[ docs-url ] : https://docs.rs/xtask-wasm/
15
- [ deps-badge ] : https://deps.rs/crate/ xtask-wasm/0.1.9 /status.svg
15
+ [ deps-badge ] : https://deps.rs/repo/github/rustminded/ xtask-wasm/status.svg
16
16
[ deps-url ] : https://deps.rs/crate/xtask-wasm
17
17
[ licenses-badge ] : https://img.shields.io/crates/l/xtask-wasm
18
18
@@ -115,7 +115,7 @@ This library gives you three structs:
115
115
(using [ xtask-watch] ( https://github.com/rustminded/xtask-watch ) ).
116
116
* [ ` DevServer ` ] ( https://docs.rs/xtask-wasm/latest/xtask_wasm/dev_server/struct.DevServer.html ) - Serve your project at a given IP address.
117
117
118
- They all implement [ ` clap::Parser ` ] ( https://docs.rs/clap/3.0.14 /clap/trait.Parser.html )
118
+ They all implement [ ` clap::Parser ` ] ( https://docs.rs/clap/latest /clap/trait.Parser.html )
119
119
allowing them to be added easily to an existing CLI implementation and are
120
120
flexible enough to be customized for most use-cases.
121
121
Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ fn serve(
189
189
not_found_path : Option < impl AsRef < Path > > ,
190
190
) -> Result < ( ) > {
191
191
let address = SocketAddr :: new ( ip, port) ;
192
- let listener = TcpListener :: bind ( & address) . context ( "cannot bind to the given address" ) ?;
192
+ let listener = TcpListener :: bind ( address) . context ( "cannot bind to the given address" ) ?;
193
193
194
194
log:: info!( "Development server running at: http://{}" , & address) ;
195
195
Original file line number Diff line number Diff line change @@ -387,12 +387,12 @@ fn sass(
387
387
}
388
388
389
389
log:: trace!( "Generating dist artifacts" ) ;
390
- let walker = walkdir:: WalkDir :: new ( & static_dir) ;
390
+ let walker = walkdir:: WalkDir :: new ( static_dir) ;
391
391
for entry in walker {
392
392
let entry = entry
393
393
. with_context ( || format ! ( "cannot walk into directory `{}`" , & static_dir. display( ) ) ) ?;
394
394
let source = entry. path ( ) ;
395
- let dest = dist_dir. join ( source. strip_prefix ( & static_dir) . unwrap ( ) ) ;
395
+ let dest = dist_dir. join ( source. strip_prefix ( static_dir) . unwrap ( ) ) ;
396
396
let _ = fs:: create_dir_all ( dest. parent ( ) . unwrap ( ) ) ;
397
397
398
398
if !source. is_file ( ) {
Original file line number Diff line number Diff line change 98
98
//! (using [xtask-watch](https://github.com/rustminded/xtask-watch)).
99
99
//! * [`DevServer`](crate::dev_server::DevServer) - Serve your project at a given IP address.
100
100
//!
101
- //! They all implement [`clap::Parser`](https://docs.rs/clap/3.0.14 /clap/trait.Parser.html)
101
+ //! They all implement [`clap::Parser`](https://docs.rs/clap/latest /clap/trait.Parser.html)
102
102
//! allowing them to be added easily to an existing CLI implementation and are
103
103
//! flexible enough to be customized for most use-cases.
104
104
//!
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ impl WasmOpt {
109
109
let output_path = input_path. with_extension ( "opt" ) ;
110
110
let wasm_opt = download_wasm_opt ( ) ?;
111
111
112
- let mut command = process:: Command :: new ( & wasm_opt) ;
112
+ let mut command = process:: Command :: new ( wasm_opt) ;
113
113
command
114
114
. stderr ( process:: Stdio :: inherit ( ) )
115
115
. arg ( input_path)
@@ -136,8 +136,8 @@ impl WasmOpt {
136
136
"command `wasm-opt` failed"
137
137
) ;
138
138
139
- fs:: remove_file ( & input_path) ?;
140
- fs:: rename ( & output_path, & input_path) ?;
139
+ fs:: remove_file ( input_path) ?;
140
+ fs:: rename ( & output_path, input_path) ?;
141
141
142
142
log:: info!( "Wasm optimized" ) ;
143
143
Ok ( self )
You can’t perform that action at this time.
0 commit comments