refactor: merge get_outputs macros into define_node and include_definition

This commit is contained in:
2024-04-16 13:58:10 +02:00
parent 097b99ef55
commit 8f594aebe3
19 changed files with 130 additions and 149 deletions

View File

@@ -1,7 +1,12 @@
{
"value": {
"type": "float",
"value": 0.1,
"internal": true
"outputs": [
"float"
],
"inputs": {
"value": {
"type": "float",
"value": 0.1,
"internal": true
}
}
}

View File

@@ -1,9 +1,7 @@
use macros::generate_input_types_file;
use utils::generate_outputs;
use macros::include_definition_file;
use wasm_bindgen::prelude::*;
generate_outputs!(["float"]);
generate_input_types_file!("src/input.json");
include_definition_file!("src/input.json");
#[wasm_bindgen]
pub fn execute(args: &[i32]) -> Vec<i32> {