| 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.70" |
| 15 |
name = "half" |
| 16 |
version = "2.4.1" |
| 17 |
authors = ["Kathryn Long <[email protected]>"] |
| 18 |
exclude = [ |
| 19 |
".git*", |
| 20 |
".editorconfig", |
| 21 |
".circleci", |
| 22 |
] |
| 23 |
description = "Half-precision floating point f16 and bf16 types for Rust implementing the IEEE 754-2008 standard binary16 and bfloat16 types." |
| 24 |
readme = "README.md" |
| 25 |
keywords = [ |
| 26 |
"f16", |
| 27 |
"bfloat16", |
| 28 |
"no_std", |
| 29 |
] |
| 30 |
categories = [ |
| 31 |
"no-std", |
| 32 |
"data-structures", |
| 33 |
"encoding", |
| 34 |
] |
| 35 |
license = "MIT OR Apache-2.0" |
| 36 |
repository = "https://github.com/starkat99/half-rs" |
| 37 |
|
| 38 |
[package.metadata.docs.rs] |
| 39 |
all-features = true |
| 40 |
rustdoc-args = [ |
| 41 |
"--cfg", |
| 42 |
"docsrs", |
| 43 |
] |
| 44 |
|
| 45 |
[[bench]] |
| 46 |
name = "convert" |
| 47 |
harness = false |
| 48 |
|
| 49 |
[dependencies.bytemuck] |
| 50 |
version = "1.4.1" |
| 51 |
features = ["derive"] |
| 52 |
optional = true |
| 53 |
default-features = false |
| 54 |
|
| 55 |
[dependencies.cfg-if] |
| 56 |
version = "1.0.0" |
| 57 |
|
| 58 |
[dependencies.num-traits] |
| 59 |
version = "0.2.14" |
| 60 |
features = ["libm"] |
| 61 |
optional = true |
| 62 |
default-features = false |
| 63 |
|
| 64 |
[dependencies.rand] |
| 65 |
version = "0.8.5" |
| 66 |
optional = true |
| 67 |
default-features = false |
| 68 |
|
| 69 |
[dependencies.rand_distr] |
| 70 |
version = "0.4.3" |
| 71 |
optional = true |
| 72 |
default-features = false |
| 73 |
|
| 74 |
[dependencies.rkyv] |
| 75 |
version = "0.7" |
| 76 |
optional = true |
| 77 |
|
| 78 |
[dependencies.serde] |
| 79 |
version = "1.0" |
| 80 |
features = ["derive"] |
| 81 |
optional = true |
| 82 |
default-features = false |
| 83 |
|
| 84 |
[dependencies.zerocopy] |
| 85 |
version = "0.6.0" |
| 86 |
optional = true |
| 87 |
default-features = false |
| 88 |
|
| 89 |
[dev-dependencies.criterion] |
| 90 |
version = "0.4.0" |
| 91 |
|
| 92 |
[dev-dependencies.crunchy] |
| 93 |
version = "0.2.2" |
| 94 |
|
| 95 |
[dev-dependencies.quickcheck] |
| 96 |
version = "1.0" |
| 97 |
|
| 98 |
[dev-dependencies.quickcheck_macros] |
| 99 |
version = "1.0" |
| 100 |
|
| 101 |
[dev-dependencies.rand] |
| 102 |
version = "0.8.5" |
| 103 |
|
| 104 |
[features] |
| 105 |
alloc = [] |
| 106 |
default = ["std"] |
| 107 |
rand_distr = [ |
| 108 |
"dep:rand", |
| 109 |
"dep:rand_distr", |
| 110 |
] |
| 111 |
std = ["alloc"] |
| 112 |
use-intrinsics = [] |
| 113 |
|
| 114 |
[target."cfg(target_arch = \"spirv\")".dependencies.crunchy] |
| 115 |
version = "0.2.2" |