feat: some shit

This commit is contained in:
2024-02-28 21:21:42 +01:00
commit 27b6514167
39 changed files with 9501 additions and 0 deletions

11
nodes/multiply/Cargo.toml Normal file
View File

@@ -0,0 +1,11 @@
[package]
name = "multiply"
version = "0.1.0"
edition = "2021"
[dependencies]
wasm-bindgen = "0.2.91"
[lib]
crate-type = ["cdylib"]

10
nodes/multiply/src/lib.rs Normal file
View File

@@ -0,0 +1,10 @@
#[no_mangle]
pub extern "C" fn execute(a: u32, b: u32) -> u32 {
a + b
}
#[no_mangle]
pub extern "C" fn get_definition() -> String {
let bytes = include_str!("./node.json");
bytes.to_string()
}

View File

@@ -0,0 +1,17 @@
{
"inputs": {
"left": {
"type": "integer",
"default": 50,
"min": 0,
"max": 255
},
"right": {
"type": "integer",
"default": 50,
"min": 0,
"max": 255
}
},
"outputs": ["integer"]
}