Cargo Features
[dependencies]
i2p_snow = { version = "0.5.1", default-features = false, features = ["nightly", "default-resolver", "hacl-star-resolver", "hacl-star-accelerated", "ring-resolver", "ring-accelerated", "vector-tests"] }
This is slightly mumbo-jumboey, but in short:
Features with a -resolver suffix simply enables the existence of a specific resolver,
and -accelerated suffix means that this resolver will be the default used by the Builder.
- default = default-resolver
-
The
default-resolver
feature is set by default wheneveri2p_snow
is added without
somewhere in the dependency tree.default-features = false - nightly
-
Enables nightly of x25519-dalek ^0.4, simd_opt of blake2-rfc and chacha20-poly1305-aead
- default-resolver default hacl-star-accelerated? ring-accelerated? = blake2-rfc, chacha20-poly1305-aead, rand, rust-crypto, x25519-dalek
- hacl-star-resolver hacl-star-accelerated? = hacl-star
- hacl-star-accelerated = default-resolver, hacl-star-resolver
- ring-resolver ring-accelerated? = ring
- ring-accelerated = default-resolver, ring-resolver
- vector-tests
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.
- chacha20-poly1305-aead default-resolver nightly?
- blake2-rfc default-resolver nightly?
- rust-crypto default-resolver
- hacl-star hacl-star-resolver?
-
Enables hacl-star ^0.0.13
- rand default-resolver
-
Enables rand ^0.6
- ring ring-resolver?
-
Enables ring ^0.14.0
- x25519-dalek default-resolver nightly?
-
Enables x25519-dalek ^0.4