Initial Agentsd project commit
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
11
core/proto/Cargo.toml
Normal file
11
core/proto/Cargo.toml
Normal file
@@ -0,0 +1,11 @@
|
||||
[package]
|
||||
name = "agentsd-proto"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
tonic = { workspace = true }
|
||||
prost = { workspace = true }
|
||||
|
||||
[build-dependencies]
|
||||
tonic-build = { workspace = true }
|
||||
7
core/proto/build.rs
Normal file
7
core/proto/build.rs
Normal file
@@ -0,0 +1,7 @@
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
tonic_build::configure()
|
||||
.build_server(true)
|
||||
.build_client(true)
|
||||
.compile_protos(&["../../proto/agentsd.proto"], &["../../proto/"])?;
|
||||
Ok(())
|
||||
}
|
||||
5
core/proto/src/lib.rs
Normal file
5
core/proto/src/lib.rs
Normal file
@@ -0,0 +1,5 @@
|
||||
pub mod agentsd {
|
||||
tonic::include_proto!("agentsd");
|
||||
}
|
||||
|
||||
pub use agentsd::*;
|
||||
Reference in New Issue
Block a user