Cargo Features

const-primes has no features set by default.

[dependencies]
const-primes = { version = "0.8.6", features = ["std", "const_assert", "serde"] }
std

Implements the Error trait from the standard library for the error types.

const_assert

Uses the inline const feature from Rust 1.79.0 to convert panics that only involve const generics into compile errors. Raises the MSRV of the crate to 1.79.0.

serde

Derives the Serialize and Deserialize traits from serde for the Primes struct, as well as a few others.

Enables serde and serde_arrays