Skip to content
Snippets Groups Projects
Unverified Commit 121117ae authored by Éloïs's avatar Éloïs
Browse files

[enh] #36 add build feature strict (deny warnings)

parent b190e8e8
No related branches found
No related tags found
1 merge request!24Resolve "gitlab-ci : build in strict mode (deny warnings)"
......@@ -12,7 +12,7 @@ build:stable:
tags:
- redshift-rs-stable
script:
- cargo build
- cargo build --all-features
tests:stable:
stage: tests
......
......@@ -15,3 +15,7 @@ path = "lib.rs"
base58 = "0.1.0"
base64 = "0.8.0"
rust-crypto = "0.2.36"
[features]
# Treat warnings as a build error.
strict = []
\ No newline at end of file
......@@ -15,6 +15,7 @@
//! Provide wrappers for cryptographic building blocks used by Duniter.
#![cfg_attr(feature = "strict", deny(warnings))]
#![deny(missing_docs, missing_debug_implementations, missing_copy_implementations, trivial_casts,
trivial_numeric_casts, unsafe_code, unstable_features, unused_import_braces,
unused_qualifications)]
......
......@@ -19,3 +19,7 @@ base64 = "0.8.0"
lazy_static = "1.0.0"
regex = "0.2"
duniter-crypto = { path = "../crypto" }
[features]
# Treat warnings as a build error.
strict = []
\ No newline at end of file
......@@ -15,6 +15,7 @@
//! Implements the Duniter Protocol.
#![cfg_attr(feature = "strict", deny(warnings))]
#![deny(missing_docs, missing_debug_implementations, missing_copy_implementations, trivial_casts,
trivial_numeric_casts, unsafe_code, unstable_features, unused_import_braces,
unused_qualifications)]
......
......@@ -17,3 +17,7 @@ serde_derive = "1.0.24"
bincode = "0.9.2"
byteorder = "1.2.1"
rayon = "1.0.0"
[features]
# Treat warnings as a build error.
strict = []
\ No newline at end of file
......@@ -26,6 +26,7 @@
//!
//! [js-tests]: https://github.com/duniter/wotb/blob/master/wotcpp/webOfTrust.cpp
#![cfg_attr(feature = "strict", deny(warnings))]
#![deny(missing_docs, missing_debug_implementations, missing_copy_implementations, trivial_casts,
trivial_numeric_casts, unsafe_code, unstable_features, unused_import_braces,
unused_qualifications)]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment