blob: 5963bae41250b306e77978864f1ae2b0d1333c3b [file] [log] [blame]
Jakub Koture245d8b2020-12-21 17:28:15 +01001[package]
2name = "half"
Joel Galensone6eab9d2021-04-01 16:51:38 -07003version = "1.7.1" # Remember to keep in sync with html_root_url crate attribute
Jakub Koture245d8b2020-12-21 17:28:15 +01004authors = ["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"
Joel Galensone6eab9d2021-04-01 16:51:38 -070012exclude = ["/ci", "/*.yml"]
Jakub Koture245d8b2020-12-21 17:28:15 +010013
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
Joel Galensone6eab9d2021-04-01 16:51:38 -070025[dependencies.bytemuck]
26version = "1.4.1"
27optional = true
28default-features = false
29features = ["derive"]
30
Jakub Koture245d8b2020-12-21 17:28:15 +010031[dependencies.serde]
32version = "1.0"
33optional = true
34default-features = false
35features = ["derive"]
36
Joel Galensone6eab9d2021-04-01 16:51:38 -070037[dependencies.num-traits]
38version = "0.2.14"
39optional = true
40default-features = false
41
Jakub Koture245d8b2020-12-21 17:28:15 +010042[package.metadata.docs.rs]
Joel Galensone6eab9d2021-04-01 16:51:38 -070043features = ["std", "serde", "bytemuck", "num-traits"]
Jakub Koture245d8b2020-12-21 17:28:15 +010044
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