-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
131 lines (108 loc) · 2.84 KB
/
Cargo.toml
File metadata and controls
131 lines (108 loc) · 2.84 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
[package]
name = "chaincraft"
version = "0.2.4"
edition = "2021"
rust-version = "1.82"
authors = ["Chaincraft Contributors"]
license = "MIT"
description = "A high-performance Rust-based platform for blockchain education and prototyping"
readme = "README.md"
homepage = "https://github.com/jose-blockchain/chaincraft-rust"
repository = "https://github.com/jose-blockchain/chaincraft-rust"
documentation = "https://docs.rs/chaincraft"
keywords = ["blockchain", "education", "prototyping", "distributed", "consensus"]
categories = ["network-programming", "cryptography", "science"]
include = [
"src/**/*",
"examples/**/*",
"tests/**/*",
"Cargo.toml",
"README.md",
"CHANGELOG.md",
"LICENSE*",
]
# Remove patch section - it's causing conflicts with icu_collections updates
# [patch.crates-io]
# ring = { git = "https://github.com/briansmith/ring", tag = "v0.16.20" }
[lib]
name = "chaincraft"
path = "src/lib.rs"
[[bin]]
name = "chaincraft-cli"
path = "src/bin/cli.rs"
[dependencies]
# Async runtime and networking
tokio = { version = "1.35", features = ["full"] }
tokio-util = "0.7"
async-trait = "0.1"
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
bincode = "1.3"
bytes = { version = "1.0", features = ["serde"] }
serde_bytes = "0.11"
# Networking (in-house UDP; no libp2p)
socket2 = "0.5"
# Cryptography
sha2 = "0.10"
sha3 = "0.10"
blake3 = "1.5"
ring = "0.17"
ed25519-dalek = { version = "2.0", features = ["serde", "rand_core"] }
k256 = { version = "0.13", features = ["serde", "ecdsa"] }
rand = "0.8"
rand_core = "0.6"
hex = "0.4"
# Data structures
indexmap = "2.0"
dashmap = "5.5"
sled = { version = "0.34", optional = true }
sqlx = { version = "0.7", features = ["runtime-tokio-rustls", "sqlite", "chrono", "uuid"], optional = true }
# OpenSSL is optional and not used on Windows
openssl = { version = "0.10", optional = true }
# Utilities
thiserror = "1.0"
anyhow = "1.0"
tracing = "0.1"
tracing-subscriber = "0.3"
uuid = { version = "1.6", features = ["v4", "serde"] }
futures = "0.3"
lru = "0.12"
num_cpus = "1.0"
# CLI
clap = { version = "4.4", features = ["derive"] }
rpassword = "7.3"
# Compression
flate2 = "1.0"
# Encoding
base64 = "0.21"
# Time
chrono = { version = "0.4", features = ["serde"] }
# VDF implementation
vdf = { version = "0.1", optional = true }
# VRF (placeholders)
vrf = "0.2"
# Symmetric encryption (Fernet, Python-compatible)
fernet = "0.2"
[dev-dependencies]
tokio-test = "0.4"
criterion = "0.5"
proptest = "1.4"
tempfile = "3.8"
[features]
default = ["compression"]
persistent = ["dep:sled"]
indexing = ["dep:sqlx"]
compression = []
vdf-crypto = ["dep:vdf"]
openssl-tls = ["dep:openssl"]
[target.'cfg(unix)'.dependencies]
openssl = { version = "0.10", optional = true }
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"
[profile.dev]
opt-level = 0
debug = true