/
Cargo.toml
79 lines (64 loc) · 1.93 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[package]
name = "stratum-server"
version = "4.0.0"
authors = ["Sean Kilgarriff sean@urkel.com"]
rust-version = "1.65"
edition = "2021"
license = "Apache-2.0 OR MIT"
description = "The server code for the Rust Stratum implementation"
repository = "https://github.com/OpenPoolProject/stratum"
[features]
default = ["tcp", "api", "v1"]
api = ["axum", "hyper", "tower-http"]
tcp = []
upstream = []
btcagent = []
v1 = []
v2 = []
[dependencies]
# Futures
# @todo after full implementation, see if we can peel back some features here to
# the minimal required.
tokio = { version = "1.23.1", features = ["full"] }
async-trait = "0.1.60"
futures = "0.3.25"
tokio-util = { version = "0.7.4", features = ["time"]}
tokio-stream = { version = "0.1.11", features = ["net"]}
# API
axum = { version = "0.6.1", optional = true}
hyper = { version = "0.14.23", optional = true}
tower-http = { version = "0.3.4", features = ["cors"], optional = true}
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.91"
extended-primitives = {version = "0.3.8"}
# Telemtry
tracing = "0.1.37"
# Primitives
uuid = { version = "1.2.2", features = ["serde", "v4"] }
bytes = "1.3.0"
# Utils
thiserror = "1.0.38"
bit-set = "0.5.3"
# @todo I believe we can replace this, but let's see
signal-hook = "0.3.14"
signal-hook-tokio = {version = "0.3.1", features = ["futures-v0_3"]}
dashmap = {version = "5.4.0"}
rlimit = "0.9.0"
parking_lot = "0.12"
[dev-dependencies]
tokio = { version = "1", features = ["test-util"] }
tokio-test = "0.4.2"
criterion = {version = "0.4", features = ["async_tokio"]}
# Allocator @todo switch this to mimalloc
jemallocator = "0.5.0"
tracing-subscriber = {version = "0.3", features = ["env-filter"] }
[package.metadata.release]
tag = false
sign-commit = false
pre-release-commit-message = "chore(server): release {{ version }}"
# @todo bring back benchmarks here.
[[bench]]
name = "default"
harness = false
# required-features = ["benches"]