File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ rstest_reuse = "0.1.3"
2828default = [" std" ]
2929alloc = []
3030std = []
31+ unsafe = []
32+ avx2 = [" unsafe" ]
3133
3234[profile .bench ]
3335# Useful for better disassembly when using `perf record` and `perf annotate`
Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ use crate::{alphabet, DecodeError};
44
55pub mod fast_portable;
66
7+ #[ cfg( all( any( target_arch = "x86" , target_arch = "x86_64" ) ,
8+ target_feature = "avx2" ,
9+ feature = "avx2" ) ) ]
10+ pub mod avx2;
11+
712#[ cfg( test) ]
813mod naive;
914
Original file line number Diff line number Diff line change 8585 variant_size_differences,
8686 warnings
8787) ]
88- #![ forbid( unsafe_code) ]
88+ #![ cfg_attr ( not ( feature = "unsafe" ) , forbid( unsafe_code) ) ]
8989#![ cfg_attr( not( any( feature = "std" , test) ) , no_std) ]
9090
9191#[ cfg( all( feature = "alloc" , not( any( feature = "std" , test) ) ) ) ]
You can’t perform that action at this time.
0 commit comments