[package]
edition = "2024"
rust-version = "1.85"
name = "microfloat"
version = "0.1.1"
authors = ["Lachlan Deakin <ljdgit@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "8-bit and sub-byte floating point types"
documentation = "https://docs.rs/microfloat"
readme = "README.md"
keywords = [
"float8",
"float6",
"float4",
"no_std",
]
categories = [
"no-std",
"data-structures",
"encoding",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/LDeakin/microfloat"
[package.metadata.docs.rs]
all-features = true
[features]
default = []
num-traits = ["dep:num-traits"]
rand_distr = [
"dep:rand",
"dep:rand_distr",
]
[lib]
name = "microfloat"
path = "src/lib.rs"
[[test]]
name = "bytemuck"
path = "tests/bytemuck.rs"
[[test]]
name = "compat"
path = "tests/compat.rs"
[[test]]
name = "format_edges"
path = "tests/format_edges.rs"
[[test]]
name = "num_traits"
path = "tests/num_traits.rs"
[[test]]
name = "ops"
path = "tests/ops.rs"
[[test]]
name = "prop_f4e2m1fn"
path = "tests/prop_f4e2m1fn.rs"
[[test]]
name = "prop_f6e2m3fn"
path = "tests/prop_f6e2m3fn.rs"
[[test]]
name = "prop_f6e3m2fn"
path = "tests/prop_f6e3m2fn.rs"
[[test]]
name = "prop_f8e3m4"
path = "tests/prop_f8e3m4.rs"
[[test]]
name = "prop_f8e4m3"
path = "tests/prop_f8e4m3.rs"
[[test]]
name = "prop_f8e4m3b11fnuz"
path = "tests/prop_f8e4m3b11fnuz.rs"
[[test]]
name = "prop_f8e4m3fn"
path = "tests/prop_f8e4m3fn.rs"
[[test]]
name = "prop_f8e4m3fnuz"
path = "tests/prop_f8e4m3fnuz.rs"
[[test]]
name = "prop_f8e5m2"
path = "tests/prop_f8e5m2.rs"
[[test]]
name = "prop_f8e5m2fnuz"
path = "tests/prop_f8e5m2fnuz.rs"
[[test]]
name = "prop_f8e8m0fnu"
path = "tests/prop_f8e8m0fnu.rs"
[[test]]
name = "rand_distr"
path = "tests/rand_distr.rs"
[[test]]
name = "rkyv"
path = "tests/rkyv.rs"
[[test]]
name = "serde"
path = "tests/serde.rs"
[dependencies.bytemuck]
version = "1.24.0"
features = ["derive"]
optional = true
default-features = false
[dependencies.libm]
version = "0.2.6"
[dependencies.num-traits]
version = "0.2"
optional = true
default-features = false
[dependencies.rand]
version = "0.9.0"
features = ["thread_rng"]
optional = true
default-features = false
[dependencies.rand_distr]
version = "0.5.0"
optional = true
default-features = false
[dependencies.rkyv]
version = "0.8.3"
optional = true
[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true
default-features = false
[dev-dependencies.proptest]
version = "1.11"
features = ["std"]
default-features = false
[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.3"
features = ["wasm_js"]