First commit

This commit is contained in:
Ondrej Novak 2026-03-02 22:14:31 +01:00
commit b747155f84
Signed by: handy
SSH Key Fingerprint: SHA256:jlNm8ijkaMl4X7+nn3zBFTJufdQgT4unKJoZVH6kYTM
4 changed files with 25 additions and 0 deletions

4
Cargo.toml Normal file
View File

@ -0,0 +1,4 @@
[workspace]
resolver = "3"
members = ["protocol"]

1
protocol/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

6
protocol/Cargo.toml Normal file
View File

@ -0,0 +1,6 @@
[package]
name = "protocol"
version = "0.1.0"
edition = "2024"
[dependencies]

14
protocol/src/lib.rs Normal file
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);
}
}