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