• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[package]
2name = "half"
3version = "1.7.1" # Remember to keep in sync with html_root_url crate attribute
4authors = ["Kathryn Long <squeeself@gmail.com>"]
5description = "Half-precision floating point f16 and bf16 types for Rust implementing the IEEE 754-2008 standard binary16 and bfloat16 types."
6repository = "https://github.com/starkat99/half-rs"
7readme = "README.md"
8keywords = ["f16", "bfloat16", "no_std"]
9license = "MIT/Apache-2.0"
10categories = ["no-std", "data-structures", "encoding"]
11edition = "2018"
12exclude = ["/ci", "/*.yml"]
13
14[badges]
15appveyor = { repository = "starkat99/half-rs" }
16travis-ci = { repository = "starkat99/half-rs" }
17maintenance = { status = "passively-maintained" }
18
19[features]
20std = ["alloc"]
21use-intrinsics = []
22serialize = ["serde"] # Deprecated. Use serde directly.
23alloc = []
24
25[dependencies.bytemuck]
26version = "1.4.1"
27optional = true
28default-features = false
29features = ["derive"]
30
31[dependencies.serde]
32version = "1.0"
33optional = true
34default-features = false
35features = ["derive"]
36
37[dependencies.num-traits]
38version = "0.2.14"
39optional = true
40default-features = false
41
42[package.metadata.docs.rs]
43features = ["std", "serde", "bytemuck", "num-traits"]
44
45[dev-dependencies]
46criterion = "0.3"
47quickcheck = "0.9"
48quickcheck_macros = "0.9"
49rand = "0.7"
50version-sync = "0.8"
51
52[[bench]]
53name = "convert"
54harness = false
55