[package]
name = "microfloat"
version = "0.1.1"
authors = ["Lachlan Deakin <ljdgit@gmail.com>"]
edition = "2024"
rust-version = "1.85"
description = "8-bit and sub-byte floating point types"
documentation = "https://docs.rs/microfloat"
repository = "https://github.com/LDeakin/microfloat"
license = "MIT OR Apache-2.0"
keywords = [
"float8",
"float6",
"float4",
"no_std",
]
categories = ["no-std", "data-structures", "encoding"]
[dependencies]
bytemuck = { version = "1.24.0", features = ["derive"], default-features = false, optional = true }
libm = "0.2.6"
num-traits = { version = "0.2", default-features = false, optional = true }
rand = { version = "0.9.0", features = ["thread_rng"], default-features = false, optional = true }
rand_distr = { version = "0.5.0", default-features = false, optional = true }
rkyv = { version = "0.8.3", optional = true }
serde = { version = "1.0", features = ["derive"], default-features = false, optional = true }
[features]
default = []
num-traits = ["dep:num-traits"]
rand_distr = ["dep:rand", "dep:rand_distr"]
[dev-dependencies]
proptest = { version = "1.11", default-features = false, features = ["std"] }
[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.3", features = ["wasm_js"] }
[package.metadata.docs.rs]
all-features = true