make az support optional

This commit is contained in:
Trevor Spiteri 2019-10-10 17:13:27 +02:00
parent 019c1eeb23
commit d6c634c915
2 changed files with 3 additions and 2 deletions

View File

@ -25,7 +25,7 @@ fail-on-warnings = []
[dependencies]
typenum = "1.10"
az = "0.3"
az = { version = "0.3", optional = true }
half = { version = "1.2", optional = true }
serde = { version = "1.0.60", default-features = false, optional = true }
@ -36,7 +36,7 @@ criterion = "0.2"
num-traits = { version = "0.2", default-features = false }
[package.metadata.docs.rs]
features = ["f16", "serde"]
features = ["az", "f16", "serde"]
[[bench]]
name = "bench_main"

View File

@ -235,6 +235,7 @@ extern crate std;
mod macros;
mod arith;
#[cfg(feature = "az")]
mod cast;
mod cmp;
pub mod consts;