GRPC Server Support

- Deprecates old json-rpc system
- Add GRPC daemon over uds
This commit is contained in:
Jett Chen 2024-07-13 17:32:49 -07:00
parent 3fbb520a10
commit e4b0f1660b
28 changed files with 1110 additions and 200 deletions

View file

@ -19,6 +19,7 @@ tokio = { version = "1.37", features = [
"signal",
"time",
"tracing",
"fs",
] }
tun = { version = "0.1", path = "../tun", features = ["serde", "tokio"] }
clap = { version = "4.4", features = ["derive"] }
@ -56,8 +57,17 @@ reqwest = { version = "0.12", default-features = false, features = [
"json",
"rustls-tls",
] }
rusqlite = "0.31.0"
rusqlite = { version = "0.31.0", features = ["blob"] }
dotenv = "0.15.0"
tonic = "0.12.0"
prost = "0.13.1"
prost-types = "0.13.1"
tokio-stream = "0.1"
async-stream = "0.2"
tower = "0.4.13"
hyper-util = "0.1.6"
toml = "0.8.15"
rust-ini = "0.21.0"
[target.'cfg(target_os = "linux")'.dependencies]
caps = "0.5"
@ -66,7 +76,7 @@ tracing-journald = "0.3"
[target.'cfg(target_vendor = "apple")'.dependencies]
nix = { version = "0.27" }
rusqlite = { version = "0.31.0", features = ["bundled"] }
rusqlite = { version = "0.31.0", features = ["bundled", "blob"] }
[dev-dependencies]
insta = { version = "1.32", features = ["yaml"] }
@ -83,3 +93,7 @@ pre_uninstall_script = "../package/rpm/pre_uninstall"
[features]
tokio-console = ["dep:console-subscriber"]
bundled = ["rusqlite/bundled"]
[build-dependencies]
tonic-build = "0.12.0"