| 1 |
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
| 2 |
# |
| 3 |
# When uploading crates to the registry Cargo will automatically |
| 4 |
# "normalize" Cargo.toml files for maximal compatibility |
| 5 |
# with all versions of Cargo and also rewrite `path` dependencies |
| 6 |
# to registry (e.g., crates.io) dependencies. |
| 7 |
# |
| 8 |
# If you are reading this file be aware that the original Cargo.toml |
| 9 |
# will likely look very different (and much more reasonable). |
| 10 |
# See Cargo.toml.orig for the original contents. |
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2021" |
| 14 |
rust-version = "1.81" |
| 15 |
name = "half" |
| 16 |
version = "2.5.0" |
| 17 |
authors = ["Kathryn Long <[email protected]>"] |
| 18 |
build = false |
| 19 |
exclude = [ |
| 20 |
".git*", |
| 21 |
".editorconfig", |
| 22 |
".circleci", |
| 23 |
] |
| 24 |
autolib = false |
| 25 |
autobins = false |
| 26 |
autoexamples = false |
| 27 |
autotests = false |
| 28 |
autobenches = false |
| 29 |
description = "Half-precision floating point f16 and bf16 types for Rust implementing the IEEE 754-2008 standard binary16 and bfloat16 types." |
| 30 |
readme = "README.md" |
| 31 |
keywords = [ |
| 32 |
"f16", |
| 33 |
"bfloat16", |
| 34 |
"no_std", |
| 35 |
] |
| 36 |
categories = [ |
| 37 |
"no-std", |
| 38 |
"data-structures", |
| 39 |
"encoding", |
| 40 |
] |
| 41 |
license = "MIT OR Apache-2.0" |
| 42 |
repository = "https://github.com/starkat99/half-rs" |
| 43 |
|
| 44 |
[package.metadata.docs.rs] |
| 45 |
all-features = true |
| 46 |
rustdoc-args = [ |
| 47 |
"--cfg", |
| 48 |
"docsrs", |
| 49 |
] |
| 50 |
|
| 51 |
[features] |
| 52 |
alloc = [] |
| 53 |
default = ["std"] |
| 54 |
rand_distr = [ |
| 55 |
"dep:rand", |
| 56 |
"dep:rand_distr", |
| 57 |
] |
| 58 |
std = ["alloc"] |
| 59 |
use-intrinsics = [] |
| 60 |
|
| 61 |
[lib] |
| 62 |
name = "half" |
| 63 |
path = "src/lib.rs" |
| 64 |
|
| 65 |
[[bench]] |
| 66 |
name = "convert" |
| 67 |
path = "benches/convert.rs" |
| 68 |
harness = false |
| 69 |
|
| 70 |
[dependencies.arbitrary] |
| 71 |
version = "1.3.2" |
| 72 |
features = ["derive"] |
| 73 |
optional = true |
| 74 |
|
| 75 |
[dependencies.bytemuck] |
| 76 |
version = "1.4.1" |
| 77 |
features = ["derive"] |
| 78 |
optional = true |
| 79 |
default-features = false |
| 80 |
|
| 81 |
[dependencies.cfg-if] |
| 82 |
version = "1.0.0" |
| 83 |
|
| 84 |
[dependencies.num-traits] |
| 85 |
version = "0.2.14" |
| 86 |
features = ["libm"] |
| 87 |
optional = true |
| 88 |
default-features = false |
| 89 |
|
| 90 |
[dependencies.rand] |
| 91 |
version = "0.9.0" |
| 92 |
features = ["thread_rng"] |
| 93 |
optional = true |
| 94 |
default-features = false |
| 95 |
|
| 96 |
[dependencies.rand_distr] |
| 97 |
version = "0.5.0" |
| 98 |
optional = true |
| 99 |
default-features = false |
| 100 |
|
| 101 |
[dependencies.rkyv] |
| 102 |
version = "0.8" |
| 103 |
optional = true |
| 104 |
|
| 105 |
[dependencies.serde] |
| 106 |
version = "1.0" |
| 107 |
features = ["derive"] |
| 108 |
optional = true |
| 109 |
default-features = false |
| 110 |
|
| 111 |
[dependencies.zerocopy] |
| 112 |
version = "0.8" |
| 113 |
features = ["derive"] |
| 114 |
optional = true |
| 115 |
default-features = false |
| 116 |
|
| 117 |
[dev-dependencies.criterion] |
| 118 |
version = "0.5" |
| 119 |
|
| 120 |
[dev-dependencies.crunchy] |
| 121 |
version = "0.2.2" |
| 122 |
|
| 123 |
[dev-dependencies.quickcheck] |
| 124 |
version = "1.0" |
| 125 |
|
| 126 |
[dev-dependencies.quickcheck_macros] |
| 127 |
version = "1.0" |
| 128 |
|
| 129 |
[dev-dependencies.rand] |
| 130 |
version = "0.9.0" |
| 131 |
|
| 132 |
[target.'cfg(target_arch = "spirv")'.dependencies.crunchy] |
| 133 |
version = "0.2.2" |