Skip to content

Commit

Permalink
Silence annoying lint warning
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
richvdh committed Dec 10, 2024
1 parent 68c75e5 commit 31d5771
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,8 @@ vergen = { version = "8.0.0", features = ["build", "git", "gitcl"] }
git = "https://github.com/matrix-org/matrix-rust-sdk"
default_features = false
features = ["js", "automatic-room-key-forwarding"]

[lints.rust]
# Workaround for https://github.com/rustwasm/wasm-bindgen/issues/4283, while we work up the courage to upgrade
# wasm-bindgen
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(wasm_bindgen_unstable_test_coverage)'] }

0 comments on commit 31d5771

Please sign in to comment.