...
This commit is contained in:
@@ -1,6 +1,18 @@
|
||||
[package]
|
||||
name = "supervisorrpc"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
edition = "2021"
|
||||
|
||||
[[bin]]
|
||||
name = "supervisorrpc"
|
||||
path = "src/main.rs"
|
||||
|
||||
[dependencies]
|
||||
# Example dependencies for an RPC server
|
||||
# axum = "0.7"
|
||||
# jsonrpsee = { version = "0.22", features = ["server"] }
|
||||
# openrpc-types = "0.7"
|
||||
|
||||
tokio = { workspace = true }
|
||||
redis = { version = "0.24", features = ["tokio-comp"] }
|
||||
herocrypto = { path = "../herocrypto" }
|
@@ -1,3 +1,12 @@
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
||||
// To be implemented:
|
||||
// 1. Define an OpenRPC schema for supervisor functions (e.g., server status, key rotation).
|
||||
// 2. Implement an HTTP/TCP server (e.g., using Axum or jsonrpsee) that serves the schema
|
||||
// and handles RPC calls.
|
||||
// 3. Implement support for Unix domain sockets in addition to TCP.
|
||||
// 4. Use the `herocrypto` or `redis-rs` crate to interact with the main `herodb` instance.
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
println!("Supervisor RPC server starting... (not implemented)");
|
||||
// Server setup code will go here.
|
||||
}
|
Reference in New Issue
Block a user