misc: initial layout

This commit is contained in:
hdbg
2026-02-09 14:06:53 +01:00
commit 284f997cbe
78 changed files with 4917 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
[package]
name = "arbiter-proto"
version = "0.1.0"
edition = "2024"
[dependencies]
tonic.workspace = true
prost.workspace = true
[build-dependencies]
tonic-prost-build = "0.14.3"

View File

@@ -0,0 +1,4 @@
fn main() -> Result<(), Box<dyn std::error::Error>> {
// tonic_prost_build::compile_protos("../../protobufs/")?;
Ok(())
}

View File

@@ -0,0 +1,14 @@
pub fn add(left: u64, right: u64) -> u64 {
left + right
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}