feat: some shit
This commit is contained in:
16
nodes/add/src/lib.rs
Normal file
16
nodes/add/src/lib.rs
Normal file
@@ -0,0 +1,16 @@
|
||||
mod bindings;
|
||||
|
||||
use bindings::Guest;
|
||||
|
||||
struct Component;
|
||||
|
||||
impl Guest for Component {
|
||||
/// Say hello!
|
||||
fn execute(left: i32, right: i32) -> i32 {
|
||||
left + right
|
||||
}
|
||||
fn get_definition() -> String {
|
||||
let definition = include_str!("./node.json");
|
||||
definition.to_string()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user