float8 0.7.0

8-bit floating point types for Rust
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.70"
name = "float8"
version = "0.7.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "8-bit floating point types for Rust"
homepage = "https://github.com/EricLBuehler/float8"
readme = "README.md"
keywords = [
    "float8",
    "f8e4m3",
    "fp8e5m2",
    "no_std",
]
categories = ["science"]
license = "MIT"
repository = "https://github.com/EricLBuehler/float8"

[features]
all = [
    "std",
    "num-traits",
    "rand_distr",
    "bytemuck",
    "zerocopy",
    "rkyv",
    "serde",
]
bytemuck = ["dep:bytemuck"]
default = ["std"]
num-traits = ["dep:num-traits"]
rand_distr = [
    "dep:rand_distr",
    "dep:rand",
    "std",
]
rkyv = ["dep:rkyv"]
serde = ["dep:serde"]
std = ["half/std"]
zerocopy = ["dep:zerocopy"]

[lib]
name = "float8"
path = "src/lib.rs"

[[test]]
name = "close"
path = "tests/close.rs"

[[test]]
name = "f8e4m3"
path = "tests/f8e4m3.rs"

[[test]]
name = "f8e5m2"
path = "tests/f8e5m2.rs"

[[test]]
name = "rand_distr"
path = "tests/rand_distr.rs"

[dependencies.bytemuck]
version = "1.4.1"
features = ["derive"]
optional = true
default-features = false

[dependencies.half]
version = "2.4.1"
default-features = false

[dependencies.num-traits]
version = "0.2.14"
features = ["libm"]
optional = true
default-features = false

[dependencies.rand]
version = "0.9.0"
features = [
    "std",
    "std_rng",
    "thread_rng",
]
optional = true
default-features = false

[dependencies.rand_distr]
version = "0.5.0"
optional = true
default-features = false

[dependencies.rkyv]
version = "0.7"
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true
default-features = false

[dependencies.zerocopy]
version = "0.6.0"
optional = true
default-features = false