mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Add patches to remove the unused optional dependencies tracked in tree
Also performs the usual `cargo update`.
This commit is contained in:
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
@@ -155,8 +155,6 @@ jobs:
|
|||||||
# Correct the last line, which was malleated to "],"
|
# Correct the last line, which was malleated to "],"
|
||||||
members=$(echo "$members" | sed "$(echo "$members" | wc -l)s/\]\,/\]/")
|
members=$(echo "$members" | sed "$(echo "$members" | wc -l)s/\]\,/\]/")
|
||||||
|
|
||||||
# Don't check the patches
|
|
||||||
members=$(echo "$members" | grep -v "patches")
|
|
||||||
# Don't check the following
|
# Don't check the following
|
||||||
# Most of these are binaries, with the exception of the Substrate runtime which has a
|
# Most of these are binaries, with the exception of the Substrate runtime which has a
|
||||||
# bespoke build pipeline
|
# bespoke build pipeline
|
||||||
|
|||||||
13
Cargo.toml
13
Cargo.toml
@@ -172,6 +172,19 @@ panic = "unwind"
|
|||||||
overflow-checks = true
|
overflow-checks = true
|
||||||
|
|
||||||
[patch.crates-io]
|
[patch.crates-io]
|
||||||
|
# Point to empty crates for unused crates in our tree
|
||||||
|
ark-ff-3 = { package = "ark-ff", path = "patches/ethereum/ark-ff-0.3" }
|
||||||
|
ark-ff-4 = { package = "ark-ff", path = "patches/ethereum/ark-ff-0.4" }
|
||||||
|
c-kzg = { path = "patches/ethereum/c-kzg" }
|
||||||
|
libsecp256k1 = { path = "patches/ethereum/libsecp256k1" }
|
||||||
|
rug = { path = "patches/ethereum/rug" }
|
||||||
|
secp256k1-30 = { package = "secp256k1", path = "patches/ethereum/secp256k1-30" }
|
||||||
|
secp256k1-31 = { package = "secp256k1", path = "patches/ethereum/secp256k1-31" }
|
||||||
|
|
||||||
|
# Updates to the latest version
|
||||||
|
darling = { path = "patches/darling" }
|
||||||
|
thiserror = { path = "patches/thiserror" }
|
||||||
|
|
||||||
# Dependencies from monero-oxide which originate from within our own tree
|
# Dependencies from monero-oxide which originate from within our own tree
|
||||||
std-shims = { path = "patches/std-shims" }
|
std-shims = { path = "patches/std-shims" }
|
||||||
simple-request = { path = "patches/simple-request" }
|
simple-request = { path = "patches/simple-request" }
|
||||||
|
|||||||
16
patches/darling/Cargo.toml
Normal file
16
patches/darling/Cargo.toml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
[package]
|
||||||
|
name = "darling"
|
||||||
|
version = "0.20.99"
|
||||||
|
description = "Patch to the latest version"
|
||||||
|
license = "MIT"
|
||||||
|
repository = "https://github.com/serai-dex/serai/tree/develop/patches/darling"
|
||||||
|
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
|
||||||
|
keywords = []
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
[package.metadata.docs.rs]
|
||||||
|
all-features = true
|
||||||
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
darling = { version = "0.21" }
|
||||||
1
patches/darling/src/lib.rs
Normal file
1
patches/darling/src/lib.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
pub use darling::*;
|
||||||
16
patches/ethereum/ark-ff-0.3/Cargo.toml
Normal file
16
patches/ethereum/ark-ff-0.3/Cargo.toml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
[package]
|
||||||
|
name = "ark-ff"
|
||||||
|
version = "0.3.99"
|
||||||
|
description = "Patch to an empty crate"
|
||||||
|
license = "MIT"
|
||||||
|
repository = "https://github.com/serai-dex/serai/tree/develop/patches/ethereum/ark-ff-0.3"
|
||||||
|
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
|
||||||
|
keywords = []
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
[package.metadata.docs.rs]
|
||||||
|
all-features = true
|
||||||
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
||||||
|
[features]
|
||||||
|
std = []
|
||||||
1
patches/ethereum/ark-ff-0.3/src/lib.rs
Normal file
1
patches/ethereum/ark-ff-0.3/src/lib.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
const _NEVER_COMPILED: [(); 0 - 1] = [(); 0 - 1];
|
||||||
16
patches/ethereum/ark-ff-0.4/Cargo.toml
Normal file
16
patches/ethereum/ark-ff-0.4/Cargo.toml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
[package]
|
||||||
|
name = "ark-ff"
|
||||||
|
version = "0.4.99"
|
||||||
|
description = "Patch to an empty crate"
|
||||||
|
license = "MIT"
|
||||||
|
repository = "https://github.com/serai-dex/serai/tree/develop/patches/ethereum/ark-ff-0.4"
|
||||||
|
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
|
||||||
|
keywords = []
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
[package.metadata.docs.rs]
|
||||||
|
all-features = true
|
||||||
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
||||||
|
[features]
|
||||||
|
std = []
|
||||||
1
patches/ethereum/ark-ff-0.4/src/lib.rs
Normal file
1
patches/ethereum/ark-ff-0.4/src/lib.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
const _NEVER_COMPILED: [(); 0 - 1] = [(); 0 - 1];
|
||||||
18
patches/ethereum/c-kzg/Cargo.toml
Normal file
18
patches/ethereum/c-kzg/Cargo.toml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
[package]
|
||||||
|
name = "c-kzg"
|
||||||
|
version = "2.99.99"
|
||||||
|
description = "Patch to an empty crate"
|
||||||
|
license = "MIT"
|
||||||
|
repository = "https://github.com/serai-dex/serai/tree/develop/patches/ethereum/c-kzg"
|
||||||
|
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
|
||||||
|
keywords = []
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
[package.metadata.docs.rs]
|
||||||
|
all-features = true
|
||||||
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
||||||
|
[features]
|
||||||
|
std = []
|
||||||
|
serde = []
|
||||||
|
ethereum_kzg_settings = []
|
||||||
1
patches/ethereum/c-kzg/src/lib.rs
Normal file
1
patches/ethereum/c-kzg/src/lib.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
const _NEVER_COMPILED: [(); 0 - 1] = [(); 0 - 1];
|
||||||
17
patches/ethereum/libsecp256k1/Cargo.toml
Normal file
17
patches/ethereum/libsecp256k1/Cargo.toml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
[package]
|
||||||
|
name = "libsecp256k1"
|
||||||
|
version = "0.7.99"
|
||||||
|
description = "Patch to an empty crate"
|
||||||
|
license = "MIT"
|
||||||
|
repository = "https://github.com/serai-dex/serai/tree/develop/patches/ethereum/libsecp256k1"
|
||||||
|
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
|
||||||
|
keywords = []
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
[package.metadata.docs.rs]
|
||||||
|
all-features = true
|
||||||
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
||||||
|
[features]
|
||||||
|
std = []
|
||||||
|
static-context = []
|
||||||
1
patches/ethereum/libsecp256k1/src/lib.rs
Normal file
1
patches/ethereum/libsecp256k1/src/lib.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
const _NEVER_COMPILED: [(); 0 - 1] = [(); 0 - 1];
|
||||||
17
patches/ethereum/rug/Cargo.toml
Normal file
17
patches/ethereum/rug/Cargo.toml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
[package]
|
||||||
|
name = "rug"
|
||||||
|
version = "1.99.99"
|
||||||
|
description = "Patch to an empty crate"
|
||||||
|
license = "MIT"
|
||||||
|
repository = "https://github.com/serai-dex/serai/tree/develop/patches/ethereum/rug"
|
||||||
|
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
|
||||||
|
keywords = []
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
[package.metadata.docs.rs]
|
||||||
|
all-features = true
|
||||||
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
||||||
|
[features]
|
||||||
|
std = []
|
||||||
|
integer = []
|
||||||
1
patches/ethereum/rug/src/lib.rs
Normal file
1
patches/ethereum/rug/src/lib.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
const _NEVER_COMPILED: [(); 0 - 1] = [(); 0 - 1];
|
||||||
21
patches/ethereum/secp256k1-30/Cargo.toml
Normal file
21
patches/ethereum/secp256k1-30/Cargo.toml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
[package]
|
||||||
|
name = "secp256k1"
|
||||||
|
version = "0.30.99"
|
||||||
|
description = "Patch to an empty crate"
|
||||||
|
license = "MIT"
|
||||||
|
repository = "https://github.com/serai-dex/serai/tree/develop/patches/ethereum/secp256k1-30"
|
||||||
|
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
|
||||||
|
keywords = []
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
[package.metadata.docs.rs]
|
||||||
|
all-features = true
|
||||||
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
||||||
|
[features]
|
||||||
|
alloc = []
|
||||||
|
std = []
|
||||||
|
rand = []
|
||||||
|
serde = []
|
||||||
|
global-context = []
|
||||||
|
recovery = []
|
||||||
1
patches/ethereum/secp256k1-30/src/lib.rs
Normal file
1
patches/ethereum/secp256k1-30/src/lib.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
const _NEVER_COMPILED: [(); 0 - 1] = [(); 0 - 1];
|
||||||
21
patches/ethereum/secp256k1-31/Cargo.toml
Normal file
21
patches/ethereum/secp256k1-31/Cargo.toml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
[package]
|
||||||
|
name = "secp256k1"
|
||||||
|
version = "0.31.99"
|
||||||
|
description = "Patch to an empty crate"
|
||||||
|
license = "MIT"
|
||||||
|
repository = "https://github.com/serai-dex/serai/tree/develop/patches/ethereum/secp256k1-31"
|
||||||
|
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
|
||||||
|
keywords = []
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
[package.metadata.docs.rs]
|
||||||
|
all-features = true
|
||||||
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
||||||
|
[features]
|
||||||
|
alloc = []
|
||||||
|
std = []
|
||||||
|
rand = []
|
||||||
|
serde = []
|
||||||
|
global-context = []
|
||||||
|
recovery = []
|
||||||
1
patches/ethereum/secp256k1-31/src/lib.rs
Normal file
1
patches/ethereum/secp256k1-31/src/lib.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
const _NEVER_COMPILED: [(); 0 - 1] = [(); 0 - 1];
|
||||||
16
patches/thiserror/Cargo.toml
Normal file
16
patches/thiserror/Cargo.toml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
[package]
|
||||||
|
name = "thiserror"
|
||||||
|
version = "1.99.99"
|
||||||
|
description = "Patch to the latest version"
|
||||||
|
license = "MIT"
|
||||||
|
repository = "https://github.com/serai-dex/serai/tree/develop/patches/thiserror"
|
||||||
|
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
|
||||||
|
keywords = []
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
[package.metadata.docs.rs]
|
||||||
|
all-features = true
|
||||||
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
thiserror = { version = "2", features = ["std"] }
|
||||||
1
patches/thiserror/src/lib.rs
Normal file
1
patches/thiserror/src/lib.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
pub use thiserror::*;
|
||||||
Reference in New Issue
Block a user