add feature to fail on warnings
This commit is contained in:
parent
56b3176deb
commit
9969f2f243
|
@ -19,6 +19,7 @@ license = "MIT/Apache-2.0"
|
|||
|
||||
[features]
|
||||
f16 = ["half"]
|
||||
fail-on-warnings = []
|
||||
|
||||
[dependencies]
|
||||
typenum = "1.8"
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue