]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Drop unnecessary `strict` feature from `lightning-invoice` 2024-07-no-strict
authorMatt Corallo <git@bluematt.me>
Mon, 15 Jul 2024 18:34:04 +0000 (18:34 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 15 Jul 2024 18:34:31 +0000 (18:34 +0000)
99aa6e27f616c96dda2b49d09bafbc0b982251e0 detected that we had an
undefined feature in `lightning-invoice` called `strict`, which was
used to turn on `deny(warnings)`. It resolved that by adding the
feature to the `Cargo.toml`, but we actually don't need it - our CI
already builds with `-Dwarnings`, so any warnings should be
rejected during CI and there's not a lot of value in having a
(public) feature to do the same.

lightning-invoice/Cargo.toml
lightning-invoice/src/lib.rs

index cd449d8d1a7371fdd37af4740fb9473f22bbae31..d89f8d08e4a72f00e87e6ed9521d8ba4b6296c73 100644 (file)
@@ -18,7 +18,6 @@ rustdoc-args = ["--cfg", "docsrs"]
 default = ["std"]
 no-std = ["lightning/no-std"]
 std = ["bitcoin/std", "lightning/std", "bech32/std"]
-strict = []
 
 [dependencies]
 bech32 = { version = "0.9.1", default-features = false }
index e427bf3ccb99965a4ba50d8609c3dad186cf3658..4138a11b762d1751bcf99a0823838361b2d67b78 100644 (file)
@@ -9,7 +9,6 @@
 
 #![cfg_attr(docsrs, feature(doc_auto_cfg))]
 
-#![cfg_attr(feature = "strict", deny(warnings))]
 #![cfg_attr(all(not(feature = "std"), not(test)), no_std)]
 
 //! This crate provides data structures to represent