File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -83,11 +83,13 @@ clap_mangen = "0.2.20"
83
83
rustc_version = " 0.4.0"
84
84
85
85
[features ]
86
- binary = [" clap" , " glob" , " env_logger" ]
87
- default = [" binary" , " filetime " , " parallel " , " zopfli " ]
88
- parallel = [" rayon" , " indexmap/rayon" , " crossbeam-channel" ]
86
+ binary = [" dep: clap" , " dep: glob" , " dep: env_logger" ]
87
+ default = [" binary" , " parallel " , " zopfli " , " filetime " ]
88
+ parallel = [" dep: rayon" , " indexmap/rayon" , " dep: crossbeam-channel" ]
89
89
freestanding = [" libdeflater/freestanding" ]
90
- sanity-checks = [" image" ]
90
+ sanity-checks = [" dep:image" ]
91
+ zopfli = [" dep:zopfli" ]
92
+ filetime = [" dep:filetime" ]
91
93
92
94
[lib ]
93
95
name = " oxipng"
Original file line number Diff line number Diff line change @@ -165,15 +165,15 @@ fn verbose_mode() {
165
165
) ;
166
166
} ;
167
167
168
- #[ cfg( feature = "rayon " ) ]
168
+ #[ cfg( feature = "parallel " ) ]
169
169
rayon:: ThreadPoolBuilder :: new ( )
170
170
. start_handler ( move |_| thread_init ( ) )
171
171
. num_threads ( rayon:: current_num_threads ( ) + 1 )
172
172
. build ( )
173
173
. unwrap ( )
174
174
. install ( move || rayon:: spawn ( thread_exec) ) ;
175
175
176
- #[ cfg( not( feature = "rayon " ) ) ]
176
+ #[ cfg( not( feature = "parallel " ) ) ]
177
177
std:: thread:: spawn ( move || {
178
178
thread_init ( ) ;
179
179
thread_exec ( ) ;
You can’t perform that action at this time.
0 commit comments