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 and Deserialize traits from the serde crate for the Primes struct, as well as a few others. Uses the serde_arrays crate to do this, and that crate uses the standard library.

Enables serde and serde_arrays

zerocopy

Derives the IntoBytes trait from the zerocopy crate for the Primes struct.

Enables zerocopy

rkyv

Derives the Serialize, Deserialize, and Archive traits from the rkyv crate for the Primes struct.

Enables rkyv