1 | [package]
|
2 | name = "half"
|
3 | # Remember to keep in sync with html_root_url crate attribute
|
4 | version = "2.6.0"
|
5 | authors = ["Kathryn Long <squeeself@gmail.com>" ]
|
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/VoidStarKat/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.81"
|
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.16" , default-features = false, features = [
|
32 | "libm" ,
|
33 | ], optional = true }
|
34 | zerocopy = { version = "0.8.23" , default-features = false, features = [
|
35 | "derive" ,
|
36 | ], optional = true }
|
37 | rand = { version = "0.9.0" , default-features = false, features = [
|
38 | "thread_rng" ,
|
39 | ], optional = true }
|
40 | rand_distr = { version = "0.5.0" , default-features = false, optional = true }
|
41 | rkyv = { version = "0.8.0" , optional = true }
|
42 | arbitrary = { version = "1.4.1" , features = ["derive" ], optional = true }
|
43 |
|
44 | [target.'cfg(target_arch = "spirv")'.dependencies]
|
45 | crunchy = "0.2.2"
|
46 |
|
47 | [dev-dependencies]
|
48 | criterion = "0.5"
|
49 | quickcheck = "1.0"
|
50 | quickcheck_macros = "1.0"
|
51 | rand = "0.9.0"
|
52 | crunchy = "0.2.2"
|
53 |
|
54 | [[bench]]
|
55 | name = "convert"
|
56 | harness = false
|
57 |
|
58 | [package.metadata.docs.rs]
|
59 | rustdoc-args = ["--cfg" , "docsrs" ]
|
60 | all-features = true
|
61 | |