Skip to content
Open
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
12 changes: 3 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,10 @@ jobs:
uses: dtolnay/rust-toolchain@stable

- name: Install cargo-deny
uses: taiki-e/install-action@v2
with:
tool: cargo-deny
run: cargo install cargo-deny --locked

- name: Cargo Deny - Check
run: cargo deny check
shell: bash
run: cargo deny --workspace check

# todo: run on all crates
cargo-hack-codetable:
Expand All @@ -164,13 +161,10 @@ jobs:
uses: dtolnay/rust-toolchain@stable

- name: Install cargo-hack
uses: taiki-e/install-action@v2
with:
tool: cargo-hack
run: cargo install cargo-hack --locked

- name: Cargo Hack - Check each feature
run: cargo hack check -p multihash-codetable --each-feature --exclude-features arb
shell: bash
env:
RUSTFLAGS: -D warnings

Expand Down
14 changes: 0 additions & 14 deletions .github/workflows/generated-pr.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/workflows/stale.yml

This file was deleted.

7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,18 @@ serde-codec = ["serde"] # Deprecated, don't use.
serde = ["dep:serde"]

[workspace.dependencies]
no_std_io2 = { version = "0.9", default-features = false }
hex = "0.4.2"
unsigned-varint = { version = "0.8.0", default-features = false }

[dependencies]
parity-scale-codec = { version = "3.0.0", default-features = false, features = ["derive"], optional = true }
quickcheck = { version = "1.0.3", optional = true }
rand = { version = "0.10", default-features = false, features = ["alloc"], optional = true }
serde = { version = "1.0.116", optional = true, default-features = false }
unsigned-varint = { version = "0.8.0", default-features = false }
unsigned-varint = { workspace = true }
arbitrary = { version = "1.1.0", optional = true }

[dev-dependencies]
hex = "0.4.2"
hex = { workspace = true }
serde_json = "1.0.58"
serde_test = "1.0.160"
4 changes: 2 additions & 2 deletions codetable/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ serde = { version = "1.0.158", features = ["derive"], default-features = false,
arbitrary = { version = "1.3.2", optional = true, features = ["derive"] }

[dev-dependencies]
hex = "0.4.2"
unsigned-varint = { version = "0.8.0", default-features = false }
hex = { workspace = true }
unsigned-varint = { workspace = true }
criterion = "0.8"
digest-io = "0.1"
rand = "0.10"
Expand Down
24 changes: 5 additions & 19 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,16 @@ allow = [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"Unicode-DFS-2016",
"Unicode-3.0",
]
confidence-threshold = 1.0

[bans]
allow = []
deny = []
# TODO before changing to 'deny':
# * Resolve duplicate versions of itoa (used by criterion)
# * Remove atty from criterion
# * Resolve duplicate versions of constant_time_eq (used by blake2_sid and blake3)
multiple-versions = "deny"
skip = []
skip-tree = []
wildcards = "deny"
# Allow path dependencies within the workspace.
allow-wildcard-paths = true
skip = [{ name = "syn" , version = "2.0" }]

[sources]
allow-git = []
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
unknown-git = "deny"
unknown-registry = "deny"

[sources.allow-org]
github = []
gitlab = []
bitbucket = []
[bans.workspace-dependencies]
duplicates = "deny"