add feature to fail on warnings

This commit is contained in:
Trevor Spiteri 2019-01-26 03:59:00 +01:00
parent 56b3176deb
commit 9969f2f243
2 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,7 @@ license = "MIT/Apache-2.0"
[features]
f16 = ["half"]
fail-on-warnings = []
[dependencies]
typenum = "1.8"

View File

@ -134,6 +134,7 @@ additional terms or conditions.
#![doc(html_root_url = "https://docs.rs/fixed/0.1.4")]
#![doc(test(attr(deny(warnings))))]
#![cfg_attr(nightly_repr_transparent, feature(repr_transparent))]
#![cfg_attr(feature = "fail-on-warnings", deny(warnings))]
#[cfg(feature = "f16")]
extern crate half;