Cargo Features
const-primes has no features set by default.
[dependencies]
const-primes = { version = "0.9.5", features = ["serde", "zerocopy", "rkyv"] }
- 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