Skip to content

Commit 91ae6cb

Browse files
authored
Silence annoying lint warning (#177)
Since rust-lang/rust#132577 (currently in rust nightly), we get hundreds of lint warnings: ``` warning: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage` --> src/rust/lib.rs:83:1 | 83 | #[wasm_bindgen(start)] ``` The correct solution is to upgrade wasm-bindgen, but legend has it that is difficult. For now, let's silence the lint.
1 parent 68c75e5 commit 91ae6cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Cargo.toml

+5
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,8 @@ vergen = { version = "8.0.0", features = ["build", "git", "gitcl"] }
8484
git = "https://github.com/matrix-org/matrix-rust-sdk"
8585
default_features = false
8686
features = ["js", "automatic-room-key-forwarding"]
87+
88+
[lints.rust]
89+
# Workaround for https://github.com/rustwasm/wasm-bindgen/issues/4283, while we work up the courage to upgrade
90+
# wasm-bindgen
91+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(wasm_bindgen_unstable_test_coverage)'] }

0 commit comments

Comments
 (0)