-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
106 lines (87 loc) · 2.29 KB
/
Copy pathCargo.toml
File metadata and controls
106 lines (87 loc) · 2.29 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
[package]
name = "prefixd"
version = "0.18.1"
edition = "2024"
rust-version = "1.85"
description = "BGP FlowSpec routing policy daemon for DDoS mitigation"
license = "MIT"
[dependencies]
# Async runtime
tokio = { version = "1", features = ["full", "sync"] }
# HTTP server
axum = { version = "0.8", features = ["macros", "ws"] }
axum-server = { version = "0.8", features = ["tls-rustls"] }
tower = { version = "0.5", features = ["util", "limit"] }
tower-http = { version = "0.6", features = ["trace", "cors", "set-header", "limit"] }
# Authentication
axum-login = "0.18"
tower-sessions = "0.14"
tower-sessions-sqlx-store = { version = "0.15", features = ["postgres"] }
argon2 = "0.5"
password-hash = "0.5"
# WebSocket
futures-util = "0.3"
rustls = "0.23"
rustls-pemfile = "2"
# Encoding
base64 = "0.22"
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_yaml = "0.9"
# Database (compile-time checked queries)
sqlx = { version = "0.8", features = ["runtime-tokio", "postgres", "chrono", "uuid"] }
# gRPC for GoBGP
tonic = "0.14"
tonic-prost = "0.14"
prost = "0.14"
prost-types = "0.14"
# Logging & Tracing
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["json", "env-filter"] }
# Metrics
prometheus = "0.14"
once_cell = "1"
# Error handling
anyhow = "1"
thiserror = "2"
# Utilities
uuid = { version = "1", features = ["v4", "serde"] }
chrono = { version = "0.4", features = ["serde"] }
sha2 = "0.11"
hmac = "0.13"
hex = "0.4"
subtle = "2"
serde_json_path = "0.7"
regex = "1"
ipnet = { version = "2", features = ["serde"] }
clap = { version = "4", features = ["derive", "env"] }
async-trait = "0.1"
reqwest = { version = "0.13", features = ["json"] }
urlencoding = "2"
# OpenAPI
utoipa = { version = "5", features = ["axum_extras", "chrono", "uuid"] }
rand = "0.10.1"
[build-dependencies]
tonic-build = "0.14"
tonic-prost-build = "0.14"
prost-build = "0.14"
[dev-dependencies]
tokio-test = "0.4"
tempfile = "3"
criterion = { version = "0.8", features = ["async_tokio"] }
testcontainers = "0.27"
testcontainers-modules = { version = "0.15", features = ["postgres"] }
proptest = "1"
[[bench]]
name = "benchmarks"
harness = false
[features]
default = []
test-utils = []
[[bin]]
name = "prefixd"
path = "src/main.rs"
[[bin]]
name = "prefixdctl"
path = "src/bin/prefixdctl.rs"