mirror of
https://github.com/serai-dex/serai.git
synced 2024-11-16 17:07:35 +00:00
05dc474cb3
If a crate has std set, it should enable std for all dependencies in order to let them properly select which algorithms to use. Some crates fallback to slower/worse algorithms on no-std. Also more aggressively sets default-features = false leading to a *10%* reduction in the amount of crates coordinator builds.
78 lines
3.5 KiB
TOML
78 lines
3.5 KiB
TOML
[package]
|
|
name = "serai-processor"
|
|
version = "0.1.0"
|
|
description = "Multichain processor premised on canonicity to reach distributed consensus automatically"
|
|
license = "AGPL-3.0-only"
|
|
repository = "https://github.com/serai-dex/serai/tree/develop/processor"
|
|
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
|
|
keywords = []
|
|
edition = "2021"
|
|
publish = false
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[dependencies]
|
|
# Macros
|
|
async-trait = { version = "0.1", default-features = false }
|
|
lazy_static = { version = "1", default-features = false }
|
|
zeroize = { version = "1", default-features = false, features = ["std"] }
|
|
thiserror = { version = "1", default-features = false }
|
|
serde = { version = "1", default-features = false, features = ["std", "derive"] }
|
|
|
|
# Libs
|
|
rand_core = { version = "0.6", default-features = false, features = ["std", "getrandom"] }
|
|
rand_chacha = { version = "0.3", default-features = false, features = ["std"] }
|
|
|
|
# Encoders
|
|
hex = { version = "0.4", default-features = false, features = ["std"] }
|
|
scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["std"] }
|
|
bincode = { version = "1", default-features = false }
|
|
serde_json = { version = "1", default-features = false, features = ["std"] }
|
|
|
|
# Cryptography
|
|
ciphersuite = { path = "../crypto/ciphersuite", default-features = false, features = ["std", "ristretto"] }
|
|
|
|
transcript = { package = "flexible-transcript", path = "../crypto/transcript", default-features = false, features = ["std"] }
|
|
frost = { package = "modular-frost", path = "../crypto/frost", default-features = false, features = ["ristretto"] }
|
|
frost-schnorrkel = { path = "../crypto/schnorrkel", default-features = false }
|
|
|
|
# Bitcoin
|
|
secp256k1 = { version = "0.28", default-features = false, features = ["std", "global-context", "rand-std"], optional = true }
|
|
k256 = { version = "^0.13.1", default-features = false, features = ["std"], optional = true }
|
|
bitcoin-serai = { path = "../coins/bitcoin", default-features = false, features = ["std"], optional = true }
|
|
|
|
# Monero
|
|
dalek-ff-group = { path = "../crypto/dalek-ff-group", default-features = false, features = ["std"], optional = true }
|
|
monero-serai = { path = "../coins/monero", default-features = false, features = ["std", "http-rpc", "multisig"], optional = true }
|
|
|
|
# Application
|
|
log = { version = "0.4", default-features = false, features = ["std"] }
|
|
env_logger = { version = "0.10", default-features = false, features = ["humantime"] }
|
|
tokio = { version = "1", default-features = false, features = ["rt-multi-thread", "sync", "time", "macros"] }
|
|
|
|
serai-db = { path = "../common/db", features = ["rocksdb"] }
|
|
serai-env = { path = "../common/env" }
|
|
serai-client = { path = "../substrate/client", default-features = false }
|
|
|
|
messages = { package = "serai-processor-messages", path = "./messages" }
|
|
|
|
message-queue = { package = "serai-message-queue", path = "../message-queue" }
|
|
|
|
[dev-dependencies]
|
|
futures = { version = "0.3", default-features = false }
|
|
|
|
frost = { package = "modular-frost", path = "../crypto/frost", features = ["tests"] }
|
|
|
|
sp-application-crypto = { git = "https://github.com/serai-dex/substrate", default-features = false, features = ["std"] }
|
|
|
|
dockertest = "0.4"
|
|
serai-docker-tests = { path = "../tests/docker" }
|
|
|
|
[features]
|
|
secp256k1 = ["k256", "frost/secp256k1"]
|
|
bitcoin = ["dep:secp256k1", "secp256k1", "bitcoin-serai", "serai-client/bitcoin"]
|
|
|
|
ed25519 = ["dalek-ff-group", "frost/ed25519"]
|
|
monero = ["ed25519", "monero-serai", "serai-client/monero"]
|