Cargo Features
const-primes has no features set by default.
[dependencies]
const-primes = { version = "0.10.2", features = ["fast_test", "serde", "zerocopy", "rkyv"] }
- fast_test
-
Significantly speed up primality testing by depending on the
machine-prime
crate.Enables machine-prime
- serde
-
Derives the
Serialize
andDeserialize
traits from theserde
crate for thePrimes
struct, as well as a few others. Uses theserde_arrays
crate to do this, and that crate uses the standard library.Enables serde and serde_arrays
- zerocopy
-
Derives the
IntoBytes
trait from thezerocopy
crate for thePrimes
struct.Enables zerocopy
- rkyv
-
Derives the
Serialize
,Deserialize
, andArchive
traits from therkyv
crate for thePrimes
struct.Enables rkyv