| 1 |
[package] |
| 2 |
name = "half" |
| 3 |
# Remember to keep in sync with html_root_url crate attribute |
| 4 |
version = "2.4.1" |
| 5 |
authors = ["Kathryn Long <[email protected]>"] |
| 6 |
description = "Half-precision floating point f16 and bf16 types for Rust implementing the IEEE 754-2008 standard binary16 and bfloat16 types." |
| 7 |
repository = "https://github.com/starkat99/half-rs" |
| 8 |
readme = "README.md" |
| 9 |
keywords = ["f16", "bfloat16", "no_std"] |
| 10 |
license = "MIT OR Apache-2.0" |
| 11 |
categories = ["no-std", "data-structures", "encoding"] |
| 12 |
edition = "2021" |
| 13 |
rust-version = "1.70" |
| 14 |
exclude = [".git*", ".editorconfig", ".circleci"] |
| 15 |
|
| 16 |
[features] |
| 17 |
default = ["std"] |
| 18 |
std = ["alloc"] |
| 19 |
use-intrinsics = [] # Deprecated |
| 20 |
alloc = [] |
| 21 |
rand_distr = ["dep:rand", "dep:rand_distr"] |
| 22 |
|
| 23 |
[dependencies] |
| 24 |
cfg-if = "1.0.0" |
| 25 |
bytemuck = { version = "1.4.1", default-features = false, features = [ |
| 26 |
"derive", |
| 27 |
], optional = true } |
| 28 |
serde = { version = "1.0", default-features = false, features = [ |
| 29 |
"derive", |
| 30 |
], optional = true } |
| 31 |
num-traits = { version = "0.2.14", default-features = false, features = [ |
| 32 |
"libm", |
| 33 |
], optional = true } |
| 34 |
zerocopy = { version = "0.6.0", default-features = false, optional = true } |
| 35 |
rand = { version = "0.8.5", default-features = false, optional = true } |
| 36 |
rand_distr = { version = "0.4.3", default-features = false, optional = true } |
| 37 |
rkyv = { version = "0.7", optional = true } |
| 38 |
|
| 39 |
[target.'cfg(target_arch = "spirv")'.dependencies] |
| 40 |
crunchy = "0.2.2" |
| 41 |
|
| 42 |
[dev-dependencies] |
| 43 |
criterion = "0.4.0" |
| 44 |
quickcheck = "1.0" |
| 45 |
quickcheck_macros = "1.0" |
| 46 |
rand = "0.8.5" |
| 47 |
crunchy = "0.2.2" |
| 48 |
|
| 49 |
[[bench]] |
| 50 |
name = "convert" |
| 51 |
harness = false |
| 52 |
|
| 53 |
[package.metadata.docs.rs] |
| 54 |
rustdoc-args = ["--cfg", "docsrs"] |
| 55 |
all-features = true |