mirror of
https://github.com/MAGICGrants/cuprate-for-explorer.git
synced 2026-01-08 19:27:54 -05:00
In `workspace`: - New dependencies: `arti_client`, `Cuprate/tokio-socks.git`, `tor-cell`, `tor-config-path`, `tor-hsservice`, `tor-persist`, `tor-proto`, `tor-rtcompat` (yes nothing was exported). - In `deny.toml`, whitelisted `Unlicense` license for `arti_client`. In `cuprate-p2p-transport`: - Implemented `Transport<ClearNet>` and `Transport<Tor>` for `Arti`. New `ArtiClientConfig`, `ArtiServerConfig` configuration. New `OnionListener` for accepting inbound connections from arti's generated onion service. - Implemented `Transport<Tor>` for `Daemon`. New `DaemonClientConfig`, `DaemonServerConfig` configuration. New `DaemonInboundStream` listening for incoming TCP connections from the tor daemon. - `DisabledListener` as a polyfill for transports with inbound disabled, such as `Transport<ClearNet> for Arti` and in the future `Transport<ClearNet> for Socks5`. In `cuprate-p2p-core`: - Removed `Default` and `Debug` bound from `Transport::ClientConfig` and `Transport::ServerConfig`. - Removed `Clone` bound from `Transport::ServerConfig`. In `cuprate-p2p`: - Changed some function visibility to `pub(super)` instead of `pub`. In `cuprate-wire`: - Added `borsh` dependency and `BorshSerialize` and `BorshDeserialize` derived implementation to `OnionAddr` for `BorshNetworkZone` requirement in address book. In `cuprated`: - New `tor` module containing the initialization of Arti, config helpers and context structure `TorContext` to pass down to p2p initialization function and other helpers. - New `config/tor` module containing the `[tor]` configuration table. It define tor daemon related variables, as well as arti settings. - Added `enable_inbound` field to `ClearNetConfig` to disable incoming listener by default. - Added `proxy` field to `ClearNetConfig` for enabling clearnet over arti and in the future proxy urls. - Added `TorNetConfig` for setting `Tor` network zone parameters such as listening ports, enabling arti inbound server, or setting an anonymous inbound onion address from an external daemon. - Modified `initialize_zones_p2p` to now start Tor network zone and use the correct transport depending on user configuration. - In `txpool/*`, generalized `DiffuseService`, `OutboundPeerStream` and `ConcreteDandelionRouter` for `Z: NetworkZone`. Created a new `MainDandelionRouter` service that will route local txs to a Tor router instead of clearnet if available. Adapted initialization to the changes. --------- Co-authored-by: Boog900 <54e72d8a-345f-4599-bd90-c6b9bc7d0ec5@aleeas.com>
102 lines
4.7 KiB
TOML
102 lines
4.7 KiB
TOML
[package]
|
|
name = "cuprated"
|
|
version = "0.0.5"
|
|
edition = "2021"
|
|
description = "The Cuprate Rust Monero node."
|
|
license = "AGPL-3.0-only"
|
|
authors = ["Boog900", "hinto-janai", "SyntheticBird45"]
|
|
repository = "https://github.com/Cuprate/cuprate/tree/main/binaries/cuprated"
|
|
|
|
[dependencies]
|
|
# TODO: after v1.0.0, remove unneeded dependencies.
|
|
cuprate-address-book = { workspace = true }
|
|
cuprate-async-buffer = { workspace = true }
|
|
cuprate-blockchain = { workspace = true }
|
|
cuprate-consensus-context = { workspace = true }
|
|
cuprate-consensus-rules = { workspace = true }
|
|
cuprate-consensus = { workspace = true }
|
|
cuprate-constants = { workspace = true, features = ["build", "rpc"] }
|
|
cuprate-cryptonight = { workspace = true }
|
|
cuprate-dandelion-tower = { workspace = true, features = ["txpool"] }
|
|
cuprate-database-service = { workspace = true, features = ["serde"] }
|
|
cuprate-database = { workspace = true, features = ["serde"] }
|
|
cuprate-epee-encoding = { workspace = true }
|
|
cuprate-fast-sync = { workspace = true }
|
|
cuprate-fixed-bytes = { workspace = true }
|
|
cuprate-helper = { workspace = true, features = ["std", "serde", "time", "net"] }
|
|
cuprate-hex = { workspace = true }
|
|
cuprate-json-rpc = { workspace = true }
|
|
cuprate-levin = { workspace = true }
|
|
cuprate-p2p-core = { workspace = true }
|
|
cuprate-p2p-transport = { workspace = true }
|
|
cuprate-p2p = { workspace = true }
|
|
cuprate-pruning = { workspace = true }
|
|
cuprate-rpc-interface = { workspace = true, features = ["dummy"] }
|
|
cuprate-rpc-types = { workspace = true, features = ["from"] }
|
|
cuprate-test-utils = { workspace = true }
|
|
cuprate-txpool = { workspace = true }
|
|
cuprate-types = { workspace = true, features = ["json"] }
|
|
cuprate-wire = { workspace = true }
|
|
|
|
|
|
# TODO: after v1.0.0, remove unneeded dependencies.
|
|
axum = { workspace = true, features = ["tokio", "http1", "http2"] }
|
|
anyhow = { workspace = true }
|
|
arti-client = { workspace = true, features = ["tokio", "native-tls", "onion-service-client", "onion-service-service", "static"] }
|
|
async-trait = { workspace = true }
|
|
bitflags = { workspace = true }
|
|
borsh = { workspace = true }
|
|
bytemuck = { workspace = true }
|
|
bytes = { workspace = true }
|
|
cfg-if = { workspace = true }
|
|
clap = { workspace = true, features = ["cargo", "help", "wrap_help", "usage", "error-context", "suggestions"] }
|
|
chrono = { workspace = true }
|
|
crypto-bigint = { workspace = true }
|
|
crossbeam = { workspace = true }
|
|
curve25519-dalek = { workspace = true }
|
|
const_format = { workspace = true, features = ["all"] }
|
|
dashmap = { workspace = true }
|
|
dirs = { workspace = true }
|
|
futures = { workspace = true }
|
|
hex = { workspace = true }
|
|
hex-literal = { workspace = true }
|
|
indexmap = { workspace = true }
|
|
monero-address = { workspace = true }
|
|
monero-serai = { workspace = true }
|
|
nu-ansi-term = { workspace = true }
|
|
paste = { workspace = true }
|
|
pin-project = { workspace = true }
|
|
randomx-rs = { workspace = true }
|
|
rand = { workspace = true }
|
|
rand_distr = { workspace = true }
|
|
rayon = { workspace = true }
|
|
serde_bytes = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
serde = { workspace = true }
|
|
strum = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
thread_local = { workspace = true }
|
|
tokio-util = { workspace = true, features = ["rt"] }
|
|
tokio-stream = { workspace = true }
|
|
tokio = { workspace = true }
|
|
toml = { workspace = true, features = ["parse", "display"]}
|
|
toml_edit = { workspace = true }
|
|
tor-hsservice = { workspace = true }
|
|
tor-persist = { workspace = true }
|
|
tor-rtcompat = { workspace = true }
|
|
tower = { workspace = true, features = ["limit"] }
|
|
tower-http = { workspace = true, features = ["limit"] }
|
|
tracing-appender = { workspace = true }
|
|
tracing-subscriber = { workspace = true, features = ["std", "fmt", "default"] }
|
|
tracing = { workspace = true, features = ["default"] }
|
|
|
|
[dev-dependencies]
|
|
tempfile = { workspace = true }
|
|
pretty_assertions = { workspace = true }
|
|
|
|
[build-dependencies]
|
|
cuprate-hex = { workspace = true }
|
|
serde_json = { workspace = true, features = ["std"] }
|
|
|
|
[lints]
|
|
workspace = true |