Skip to content

Commit 4e8522a

Browse files
committed
bitcoin: Change rust cfg lint to warn
We are trying to release `bitcoin-io` from this branch but currently the build for `bitcoin` fails because of buggy feature gating on then `units 0.1.x` branch. ```rust #[cfg(all(feature = "alloc", not(feature = "std")))] $crate::impl_tryfrom_str_from_int_infallible!(&str, $to, $inner, $fn; alloc::string::String, $to, $inner, $fn; alloc::boxed::Box<str>, $to, $inner, $fn); #[cfg(feature = "std")] $crate::impl_tryfrom_str_from_int_infallible!(&str, $to, $inner, $fn; std::string::String, $to, $inner, $fn; std::boxed::Box<str>, $to, $inner, $fn); ``` FTR this no longer exists on master. From above we see that in `bitcoin` the macro will never be called for `--no-default-feature` builds. This doesn't matter on this branch so just change the lint to `warn` instead of `deny`.
1 parent f3dc011 commit 4e8522a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bitcoin/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@ required-features = ["std", "rand-std", "bitcoinconsensus"]
8181
name = "sighash"
8282

8383
[lints.rust]
84-
unexpected_cfgs = { level = "deny", check-cfg = ['cfg(bench)', 'cfg(fuzzing)', 'cfg(kani)', 'cfg(mutate)', 'cfg(rust_v_1_60)'] }
84+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(bench)', 'cfg(fuzzing)', 'cfg(kani)', 'cfg(mutate)', 'cfg(rust_v_1_60)'] }

0 commit comments

Comments
 (0)