Skip to content

Commit

Permalink
Add empty crates to clean up the Cargo.lock
Browse files Browse the repository at this point in the history
Also removes a now unused RUSTSEC allow in deny.
  • Loading branch information
kayabaNerve committed Nov 28, 2023
1 parent 0409fd9 commit 270592f
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 5 deletions.
13 changes: 9 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ members = [
"coordinator/tributary",
"coordinator",

"substrate/tree-cleanup/bandersnatch_vrfs",
"substrate/tree-cleanup/w3f-bls",

"substrate/primitives",

"substrate/coins/primitives",
Expand Down Expand Up @@ -94,7 +97,9 @@ lazy_static = { git = "https://github.com/rust-lang-nursery/lazy-static.rs", rev
sp-core-hashing = { git = "https://github.com/serai-dex/polkadot-sdk", branch = "experimental" }
sp-std = { git = "https://github.com/serai-dex/polkadot-sdk", branch = "experimental" }

# The external arkworks-substrate repo refers back to the paritytech
# polkadot-sdk repo, hence patching it to point to serai-dex's
[patch."https://github.com/paritytech/polkadot-sdk"]
sp-crypto-ec-utils = { git = "https://github.com/serai-dex/polkadot-sdk", branch = "experimental" }
# cargo believes the following are in-tree despite no features activating them
# We provide empty crates to not only prove they're unused, yet also clean up
# our Cargo.lock
w3f-bls = { path = "substrate/tree-cleanup/w3f-bls" }
[patch."https://github.com/w3f/ring-vrf"]
bandersnatch_vrfs = { path = "substrate/tree-cleanup/bandersnatch_vrfs" }
1 change: 0 additions & 1 deletion deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ notice = "warn"
unmaintained = "warn"

ignore = [
"RUSTSEC-2021-0139", # https://github.com/serai-dex/serai/228
"RUSTSEC-2022-0061", # https://github.com/serai-dex/serai/227
]

Expand Down
17 changes: 17 additions & 0 deletions substrate/tree-cleanup/bandersnatch_vrfs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[package]
name = "bandersnatch_vrfs"
version = "0.0.3"
description = "Empty library to remove the unused bandersnatch_vrfs from the Cargo.lock"
license = "MIT"
repository = "https://github.com/serai-dex/serai/tree/develop/substrate/tree-cleanup/bandersnatch_vrfs"
authors = ["Luke Parker <[email protected]>"]
keywords = []
edition = "2021"
rust-version = "1.74"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[features]
std = []
Empty file.
17 changes: 17 additions & 0 deletions substrate/tree-cleanup/w3f-bls/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[package]
name = "w3f-bls"
version = "0.1.3"
description = "Empty library to remove the unused w3f-bls from the Cargo.lock"
license = "MIT"
repository = "https://github.com/serai-dex/serai/tree/develop/substrate/tree-cleanup/w3f-bls"
authors = ["Luke Parker <[email protected]>"]
keywords = []
edition = "2021"
rust-version = "1.74"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[features]
std = []
Empty file.

0 comments on commit 270592f

Please sign in to comment.