[package]
edition = "2024"
rust-version = "1.86"
name = "const-num-traits"
version = "0.1.2"
authors = ["The Rust Project Developers"]
build = false
include = [
"/src",
"/examples",
"/tests",
"/README.md",
"/LICENSE-APACHE",
"/LICENSE-MIT",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Const-friendly numeric traits for generic mathematics (fork of num-traits)"
homepage = "https://github.com/kaidokert/num-traits"
documentation = "https://docs.rs/const-num-traits"
readme = "README.md"
keywords = [
"mathematics",
"numerics",
]
categories = [
"algorithms",
"science",
"no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/kaidokert/num-traits"
[package.metadata.docs.rs]
features = [
"std",
"ct",
]
rustdoc-args = [
"--generate-link-to-definition",
"--cfg",
"docsrs",
]
[features]
ct = ["dep:subtle"]
default = ["std"]
libm = ["dep:libm"]
nightly = ["c0nst/nightly"]
std = []
[lib]
name = "const_num_traits"
path = "src/lib.rs"
[[example]]
name = "typestates"
path = "examples/typestates.rs"
[[test]]
name = "cast"
path = "tests/cast.rs"
[[test]]
name = "const_nightly"
path = "tests/const_nightly.rs"
[[test]]
name = "prim_bits"
path = "tests/prim_bits.rs"
[[test]]
name = "typestate_generic_carrier"
path = "tests/typestate_generic_carrier.rs"
[dependencies.c0nst]
version = "0.2.1"
[dependencies.libm]
version = "0.2.0"
optional = true
[dependencies.subtle]
version = "2.6"
features = ["i128"]
optional = true
default-features = false