Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some warnings with latest cargo-deny #722

Merged
merged 1 commit into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}-cargo-deny-0-12-2-cargo-fuzz-0-11-0-just-1-8-0
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml', '.github/workflows/*.yml') }}

- name: Check for forbidden words
run: "! grep --include='*.rs' -RE 'to_be_bytes|from_be_bytes|dbg!' ."
Expand All @@ -48,7 +48,7 @@ jobs:

- name: Install cargo-deny
if: steps.rust-cache.outputs.cache-hit != 'true'
run: cargo install --force --version 0.12.2 cargo-deny --locked
run: rustup run --install 1.70 cargo install --force --version 0.14.3 cargo-deny --locked

- name: Install cargo-fuzz
if: steps.rust-cache.outputs.cache-hit != 'true'
Expand Down
4 changes: 2 additions & 2 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ unlicensed = "deny"
allow = [
"MIT",
# "BSD-2-Clause",
"BSD-3-Clause",
# "BSD-3-Clause",
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
]
Expand Down Expand Up @@ -107,7 +107,7 @@ exceptions = [
# Each entry is the crate and version constraint, and its specific allow
# list
{ allow = ["Unicode-DFS-2016"], name = "unicode-ident", version = "*" }, # Used only by comfy-table in the benchmarks
{ allow = ["ISC"], name = "libloading", version = "*" }, # Used only by rocksdb in the benchmarks
# { allow = ["ISC"], name = "libloading", version = "*" }, # Used only by rocksdb in the benchmarks
]

# Some crates don't have (easily) machine readable licensing information,
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ build: pre
cargo doc

pre:
cargo deny check licenses
cargo deny --all-features check licenses
cargo fmt --all -- --check
cargo clippy --all --all-targets

Expand Down
Loading