From 529a3fe9c54b7f701d7978b3dc781ea27ba7d7e5 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Fri, 2 Aug 2024 21:05:08 -0400 Subject: [PATCH] Remove Cargo.tomls for the old copy of the Monero library git-specified dependencies don't appear to be respecting the workspace, instead pulling in whatever package it first finds. --- coins/monero/Cargo.toml | 112 ----------------------------- coins/monero/generators/Cargo.toml | 34 --------- 2 files changed, 146 deletions(-) delete mode 100644 coins/monero/Cargo.toml delete mode 100644 coins/monero/generators/Cargo.toml diff --git a/coins/monero/Cargo.toml b/coins/monero/Cargo.toml deleted file mode 100644 index 918158db..00000000 --- a/coins/monero/Cargo.toml +++ /dev/null @@ -1,112 +0,0 @@ -[package] -name = "monero-serai" -version = "0.1.4-alpha" -description = "A modern Monero transaction library" -license = "MIT" -repository = "https://github.com/serai-dex/serai/tree/develop/coins/monero" -authors = ["Luke Parker "] -edition = "2021" -rust-version = "1.69" - -[package.metadata.docs.rs] -all-features = true -rustdoc-args = ["--cfg", "docsrs"] - -[lints] -workspace = true - -[dependencies] -std-shims = { path = "../../common/std-shims", version = "^0.1.1", default-features = false } - -async-trait = { version = "0.1", default-features = false } -thiserror = { version = "1", default-features = false, optional = true } - -zeroize = { version = "^1.5", default-features = false, features = ["zeroize_derive"] } -subtle = { version = "^2.4", default-features = false } - -rand_core = { version = "0.6", default-features = false } -# Used to send transactions -rand = { version = "0.8", default-features = false } -rand_chacha = { version = "0.3", default-features = false } -# Used to select decoys -rand_distr = { version = "0.4", default-features = false } - -sha3 = { version = "0.10", default-features = false } -pbkdf2 = { version = "0.12", features = ["simple"], default-features = false } - -curve25519-dalek = { version = "4", default-features = false, features = ["alloc", "zeroize", "precomputed-tables"] } - -# Used for the hash to curve, along with the more complicated proofs -group = { version = "0.13", default-features = false } -dalek-ff-group = { path = "../../crypto/dalek-ff-group", version = "0.4", default-features = false } -multiexp = { path = "../../crypto/multiexp", version = "0.4", default-features = false, features = ["batch"] } - -# Needed for multisig -transcript = { package = "flexible-transcript", path = "../../crypto/transcript", version = "0.3", default-features = false, features = ["recommended"], optional = true } -frost = { package = "modular-frost", path = "../../crypto/frost", version = "0.8", default-features = false, features = ["ed25519"], optional = true } - -monero-generators = { path = "generators", version = "0.4", default-features = false } -monero-fcmp-plus-plus = { path = "fcmp++" } - -async-lock = { version = "3", default-features = false, optional = true } - -hex-literal = "0.4" -hex = { version = "0.4", default-features = false, features = ["alloc"] } -serde = { version = "1", default-features = false, features = ["derive", "alloc"] } -serde_json = { version = "1", default-features = false, features = ["alloc"] } - -base58-monero = { version = "2", default-features = false, features = ["check"] } - -# Used for the provided HTTP RPC -digest_auth = { version = "0.3", default-features = false, optional = true } -simple-request = { path = "../../common/request", version = "0.1", default-features = false, features = ["tls"], optional = true } -tokio = { version = "1", default-features = false, optional = true } - -[build-dependencies] -dalek-ff-group = { path = "../../crypto/dalek-ff-group", version = "0.4", default-features = false } -monero-generators = { path = "generators", version = "0.4", default-features = false } - -[dev-dependencies] -tokio = { version = "1", features = ["sync", "macros"] } - -frost = { package = "modular-frost", path = "../../crypto/frost", features = ["tests"] } - -[features] -std = [ - "std-shims/std", - - "thiserror", - - "zeroize/std", - "subtle/std", - - "rand_core/std", - "rand/std", - "rand_chacha/std", - "rand_distr/std", - - "sha3/std", - "pbkdf2/std", - - "multiexp/std", - - "transcript/std", - - "monero-generators/std", - - "async-lock?/std", - - "hex/std", - "serde/std", - "serde_json/std", - - "base58-monero/std", -] - -cache-distribution = ["async-lock"] -http-rpc = ["digest_auth", "simple-request", "tokio"] -multisig = ["transcript", "frost", "std"] -binaries = ["tokio/rt-multi-thread", "tokio/macros", "http-rpc"] -experimental = [] - -default = ["std", "http-rpc"] diff --git a/coins/monero/generators/Cargo.toml b/coins/monero/generators/Cargo.toml deleted file mode 100644 index 22df2ae3..00000000 --- a/coins/monero/generators/Cargo.toml +++ /dev/null @@ -1,34 +0,0 @@ -[package] -name = "monero-generators" -version = "0.4.0" -description = "Monero's hash_to_point and generators" -license = "MIT" -repository = "https://github.com/serai-dex/serai/tree/develop/coins/monero/generators" -authors = ["Luke Parker "] -edition = "2021" - -[package.metadata.docs.rs] -all-features = true -rustdoc-args = ["--cfg", "docsrs"] - -[lints] -workspace = true - -[dependencies] -std-shims = { path = "../../../common/std-shims", version = "^0.1.1", default-features = false } - -subtle = { version = "^2.4", default-features = false } - -sha3 = { version = "0.10", default-features = false } - -curve25519-dalek = { version = "4", default-features = false, features = ["alloc", "zeroize", "precomputed-tables"] } - -group = { version = "0.13", default-features = false } -dalek-ff-group = { path = "../../../crypto/dalek-ff-group", version = "0.4", default-features = false } - -[dev-dependencies] -hex = "0.4" - -[features] -std = ["std-shims/std", "subtle/std", "sha3/std", "dalek-ff-group/std"] -default = ["std"]