Skip to content

build: allow cargo-tarpaulin config#647

Merged
bee-san merged 1 commit into
bee-san:masterfrom
PsypherPunk:646-fix-cargo-clippy-errors
Aug 21, 2024
Merged

build: allow cargo-tarpaulin config#647
bee-san merged 1 commit into
bee-san:masterfrom
PsypherPunk:646-fix-cargo-clippy-errors

Conversation

@PsypherPunk
Copy link
Copy Markdown
Collaborator

@PsypherPunk PsypherPunk commented Aug 16, 2024

As per Clippy's own recommendation:

161 | #[cfg(not(tarpaulin_include))]
    |           ^^^^^^^^^^^^^^^^^
    |
    = help: consider using a Cargo feature instead
    = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
             [lints.rust]
             unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tarpaulin_include)'] }
    = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(tarpaulin_include)");` to the top of the `build.rs`
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

fixes #646

@PsypherPunk PsypherPunk requested a review from bee-san August 16, 2024 08:57
@bee-san bee-san merged commit efc42af into bee-san:master Aug 21, 2024
BrendanGlancy added a commit to BrendanGlancy/RustScan that referenced this pull request Aug 25, 2024
build: allow cargo-tarpaulin config (bee-san#647)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

unexpected cfg condition name: tarpaulin_include

2 participants