Commit 1f39c26 1 parent ebd2748 commit 1f39c26 Copy full SHA for 1f39c26
File tree 4 files changed +8
-8
lines changed
4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -39,15 +39,15 @@ serde_json = "1"
39
39
criterion = " 0.5"
40
40
serde_json = " 1"
41
41
42
- [target .'cfg(all( target_arch = "wasm32", not(feature = "non-js")) )' .dev-dependencies ]
42
+ [target .'cfg(target_arch = "wasm32")' .dev-dependencies ]
43
43
criterion = { version = " 0.5" , default-features = false }
44
44
wasm-bindgen-test = " 0.3"
45
45
46
46
[features ]
47
47
default = [" builder" ]
48
48
ser = [" serde" ]
49
49
builder = [" derive_builder" ]
50
- non-js = []
50
+ custom_wasm_env = []
51
51
52
52
[profile .test ]
53
53
opt-level = 2
Original file line number Diff line number Diff line change @@ -292,7 +292,7 @@ fn get_dictionary_match_feedback(
292
292
mod tests {
293
293
use super :: * ;
294
294
295
- #[ cfg( all( target_arch = "wasm32" , not( feature = "non-js " ) ) ) ]
295
+ #[ cfg( all( target_arch = "wasm32" , not( feature = "custom_wasm_env " ) ) ) ]
296
296
use wasm_bindgen_test:: wasm_bindgen_test;
297
297
298
298
#[ cfg_attr( not( target_arch = "wasm32" ) , test) ]
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ extern crate quickcheck;
17
17
18
18
pub use scoring:: Score ;
19
19
use time_estimates:: CrackTimes ;
20
- #[ cfg( all( target_arch = "wasm32" , not( feature = "non-js " ) ) ) ]
20
+ #[ cfg( all( target_arch = "wasm32" , not( feature = "custom_wasm_env " ) ) ) ]
21
21
use wasm_bindgen:: prelude:: wasm_bindgen;
22
22
23
23
pub use crate :: matching:: Match ;
41
41
( result, calc_time)
42
42
}
43
43
44
- #[ cfg( all( target_arch = "wasm32" , not( feature = "non-js " ) ) ) ]
44
+ #[ cfg( all( target_arch = "wasm32" , not( feature = "custom_wasm_env " ) ) ) ]
45
45
#[ allow( non_upper_case_globals) ]
46
46
fn time_scoped < F , R > ( f : F ) -> ( R , Duration )
47
47
where
60
60
( result, calc_time)
61
61
}
62
62
63
- #[ cfg( all( target_arch = "wasm32" , feature = "non-js " ) ) ]
63
+ #[ cfg( all( target_arch = "wasm32" , feature = "custom_wasm_env " ) ) ]
64
64
fn time_scoped < F , R > ( f : F ) -> ( R , Duration )
65
65
where
66
66
F : FnOnce ( ) -> R ,
Original file line number Diff line number Diff line change @@ -77,15 +77,15 @@ lazy_static! {
77
77
pub ( crate ) static ref REFERENCE_YEAR : i32 = time:: OffsetDateTime :: now_utc( ) . year( ) ;
78
78
}
79
79
80
- #[ cfg( all( target_arch = "wasm32" , not( feature = "non-js " ) ) ) ]
80
+ #[ cfg( all( target_arch = "wasm32" , not( feature = "custom_wasm_env " ) ) ) ]
81
81
lazy_static ! {
82
82
pub ( crate ) static ref REFERENCE_YEAR : i32 = web_sys:: js_sys:: Date :: new_0( )
83
83
. get_full_year( )
84
84
. try_into( )
85
85
. unwrap( ) ;
86
86
}
87
87
88
- #[ cfg( all( target_arch = "wasm32" , feature = "non-js " ) ) ]
88
+ #[ cfg( all( target_arch = "wasm32" , feature = "custom_wasm_env " ) ) ]
89
89
lazy_static ! {
90
90
pub ( crate ) static ref REFERENCE_YEAR : i32 = {
91
91
#[ link( wasm_import_module = "zxcvbn" ) ]
You can’t perform that action at this time.
0 commit comments