Initial commit

This commit is contained in:
2025-02-06 14:33:22 +01:00
commit c31a19f09a
10 changed files with 443 additions and 0 deletions

11
plugin/Cargo.toml Normal file
View File

@@ -0,0 +1,11 @@
[package]
name = "plugin"
version = "0.1.0"
edition = "2024"
[lib]
crate-type = ["cdylib"]
[dependencies]
shared = { path = "../shared" }
stabby = { workspace = true }

9
plugin/src/lib.rs Normal file
View File

@@ -0,0 +1,9 @@
use shared::{Input, Output};
#[stabby::export]
pub extern "C" fn process(input: Input) -> Output {
Output {
sum: input.a + input.b,
product: input.a * input.b,
}
}