mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Smash serai-client so the processors don't need the entire lib to access their specific code
We prior controlled this with feature flags. It's just better to define their own crates.
This commit is contained in:
@@ -39,11 +39,9 @@ async-lock = "3"
|
||||
|
||||
simple-request = { path = "../../common/request", version = "0.3", optional = true }
|
||||
|
||||
bitcoin = { version = "0.32", optional = true }
|
||||
|
||||
ciphersuite = { path = "../../crypto/ciphersuite", optional = true }
|
||||
dalek-ff-group = { path = "../../crypto/dalek-ff-group", optional = true }
|
||||
monero-address = { git = "https://github.com/monero-oxide/monero-oxide", rev = "030c60974f0f0306849c1795bca854a3bbb757b4", version = "0.1.0", default-features = false, features = ["std"], optional = true }
|
||||
serai-client-bitcoin = { path = "./bitcoin", optional = true }
|
||||
serai-client-ethereum = { path = "./ethereum", optional = true }
|
||||
serai-client-monero = { path = "./monero", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
rand_core = "0.6"
|
||||
@@ -67,9 +65,9 @@ serai-docker-tests = { path = "../../tests/docker" }
|
||||
serai = ["thiserror/std", "scale", "serde", "serde_json", "multiaddr", "sp-core", "sp-runtime", "frame-system", "simple-request"]
|
||||
|
||||
networks = []
|
||||
bitcoin = ["networks", "dep:bitcoin"]
|
||||
ethereum = ["networks"]
|
||||
monero = ["networks", "ciphersuite", "dalek-ff-group", "monero-address"]
|
||||
bitcoin = ["networks", "serai-client-bitcoin"]
|
||||
ethereum = ["networks", "serai-client-ethereum"]
|
||||
monero = ["networks", "serai-client-monero"]
|
||||
|
||||
# Assumes the default usage is to use Serai as a DEX, which doesn't actually
|
||||
# require connecting to a Serai node
|
||||
|
||||
Reference in New Issue
Block a user