Skip to content

Commit

Permalink
chore: Fix "unused manifest key: package.ignore" (#103)
Browse files Browse the repository at this point in the history
On current main (`ee45b4cfa79408fc46893a67f2d3005f79e4e04c`) with Rust
1.83 (`rustc 1.83.0 (90b35a623 2024-11-26)`, `cargo 1.83.0 (5ffbef321
2024-10-29)`), running `cargo check` gives this warning:

```
warning: unused manifest key: package.ignore
```

Note: this warning may be buried under other warnings that could be
fixed by #102.

hawkw committed the `ignore = ["flake.nix", "flake.lock", ...]` key in
90bf2e9 in 2023. I cannot find any
reference online to there being an `ignore` key in Cargo manifests, and
fram context I am guessing that this was intended to be `exclude`, which
is documented
[here](https://doc.rust-lang.org/cargo/reference/manifest.html#the-exclude-and-include-fields).

This PR fixes the warning by changing the key to `exclude`.
  • Loading branch information
gretchenfrage authored Dec 26, 2024
1 parent ee45b4c commit 12ad6fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ categories = ["memory-management", "data-structures", "concurrency"]
description = """
A lock-free concurrent slab.
"""
ignore = [
exclude = [
"flake.nix",
"flake.lock",
".envrc",
Expand Down

0 comments on commit 12ad6fa

Please sign in to comment.