Cargo Features
[dependencies]
secretbox = { version = "0.1.3", default-features = false, features = ["curve25519", "simd", "unsafe-do-not-enable"] }
- default = rand
-
The
rand
feature is set by default wheneversecretbox
is added without
somewhere in the dependency tree.default-features = false - curve25519 = rand, x25519-dalek
- simd = packed_simd
-
Affects
chacha20::simd
,salsa20::simd
… - unsafe-do-not-enable
-
Affects
secretbox::chacha20
,secretbox::csprng
,secretbox::poly1305
,secretbox::salsa20
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- packed_simd simd?
- rand default curve25519?
-
Enables rand ^0.7.0
- x25519-dalek curve25519?
-
Enables x25519-dalek ^0.5.2