Cargo Features
[dependencies]
cryptohelpers = { version = "2.0.0", default-features = false, features = ["async", "full", "serialise", "sha256", "password", "aes", "checksum", "rsa"] }
- default = async, full, serialise
-
These default features are set whenever
cryptohelpers
is added without
somewhere in the dependency tree.default-features = false - async default = futures, tokio
-
Affects
aes::encrypt_stream
,aes::decrypt_stream
,aes::decrypt_slice
,aes::encrypt_slice
,crc::compute_stream
,crypt::encrypt
,crypt::encrypt_slice
,crypt::decrypt_slice
,crypt::decrypt
,sign::sign
,sha256::compute
,sha256::compute_slices_stream
… - full default = aes, checksum, password, rsa, sha256
-
Actual things
- serialise default = serde, serde_derive
- sha256 full password? = sha2
-
Affects
cryptohelpers::sha256
… - password full rsa? = getrandom, hex-literal, hmac, pbkdf2, sha256
-
Affects
error::password
,cryptohelpers::password
… - aes full = getrandom, openssl
-
Affects
error::aes
,cryptohelpers::aes
… - checksum full = crc
-
Affects
cryptohelpers::crc
… - rsa full = openssl, password
-
Affects
consts::RSA_PADDING
,error::rsa
,cryptohelpers::rsa
…
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.
- openssl aes? rsa?
- pbkdf2 password?
-
Enables pbkdf2 ^0.5
- sha2 sha256?
-
Enables sha2 ^0.9
- hmac password?
-
Enables hmac ^0.9
- getrandom aes? password?
-
Enables getrandom ^0.1
- crc checksum?
-
Enables crc ^1.8
- hex-literal password?
-
Enables hex-literal ^0.3
- tokio async
- serde_derive serialise
- serde serialise
- futures async