Wireguard Configuration in SQLite (#263)

#241
This commit is contained in:
Jett Chen 2024-04-22 06:01:47 +08:00 committed by GitHub
parent df549d48e6
commit abf1101484
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
43 changed files with 988 additions and 325 deletions

View file

@ -10,7 +10,15 @@ crate-type = ["lib", "staticlib"]
[dependencies]
anyhow = "1.0"
tokio = { version = "1.21", features = ["rt", "macros", "sync", "io-util", "rt-multi-thread", "time", "tracing"] }
tokio = { version = "1.21", features = [
"rt",
"macros",
"sync",
"io-util",
"rt-multi-thread",
"time",
"tracing",
] }
tun = { version = "0.1", path = "../tun", features = ["serde", "tokio"] }
clap = { version = "4.4", features = ["derive"] }
tracing = "0.1"
@ -25,7 +33,10 @@ chacha20poly1305 = "0.10"
rand = "0.8"
rand_core = "0.6"
aead = "0.5"
x25519-dalek = { version = "2.0", features = ["reusable_secrets", "static_secrets"] }
x25519-dalek = { version = "2.0", features = [
"reusable_secrets",
"static_secrets",
] }
ring = "0.17"
parking_lot = "0.12"
hmac = "0.12"
@ -37,9 +48,12 @@ async-channel = "2.1"
schemars = "0.8"
futures = "0.3.28"
once_cell = "1.19"
console-subscriber = { version = "0.2.0" , optional = true }
console-subscriber = { version = "0.2.0", optional = true }
console = "0.15.8"
[dependencies.rusqlite]
version = "0.31.0"
[target.'cfg(target_os = "linux")'.dependencies]
caps = "0.5"
libsystemd = "0.7"
@ -47,6 +61,7 @@ tracing-journald = "0.3"
[target.'cfg(target_vendor = "apple")'.dependencies]
nix = { version = "0.27" }
rusqlite = { version = "0.31.0", features = ["bundled"] }
[dev-dependencies]
insta = { version = "1.32", features = ["yaml"] }
@ -62,3 +77,4 @@ pre_uninstall_script = "../package/rpm/pre_uninstall"
[features]
tokio-console = ["dep:console-subscriber"]
bundled = ["rusqlite/bundled"]