-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
76 lines (62 loc) · 1.86 KB
/
Cargo.toml
File metadata and controls
76 lines (62 loc) · 1.86 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
[package]
name = "gork-agent"
version = "0.1.0"
edition = "2021"
authors = ["Gork <irongork.near>"]
description = "P2P agent-to-agent communication protocol with NEAR integration"
license = "MIT"
[[bin]]
name = "gork-agent"
path = "src/main.rs"
[dependencies]
# Async runtime (optimized features)
tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync", "time", "net", "io-util", "process", "signal"] }
# HTTP API for daemon
warp = "0.3"
# WebSocket support
tokio-tungstenite = "0.21"
futures-util = "0.3"
# P2P networking (optimized features)
libp2p = { version = "0.55", features = ["tcp", "noise", "yamux", "gossipsub", "kad", "identify", "ping", "relay", "macros", "tokio"] }
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# CLI
clap = { version = "4", features = ["derive"] }
# NEAR integration
near-crypto = "0.28"
bs58 = "0.5"
# Storage
rusqlite = { version = "0.32", features = ["bundled"] }
# Cryptography
x25519-dalek = { version = "2", features = ["static_secrets"] }
ed25519-dalek = { version = "2", features = ["rand_core"] }
chacha20poly1305 = "0.10"
rand = "0.8"
hkdf = "0.12"
sha2 = "0.10"
# Utilities
anyhow = "1"
thiserror = "1"
base64 = "0.22"
hex = "0.4"
chrono = { version = "0.4", features = ["serde"] }
uuid = { version = "1", features = ["v4", "serde"] }
reqwest = { version = "0.11", features = ["json"] }
regex = "1"
serde_yaml = "0.9"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
[dev-dependencies]
tempfile = "3"
assert_cmd = "2"
predicates = "3"
[profile.release]
codegen-units = 1
opt-level = "z" # Optimize for size
lto = true # Link-time optimization
debug = false # No debug symbols
panic = "abort" # Smaller panic handling
overflow-checks = true
strip = true # Strip symbols automatically (Rust 1.59+)