refactor: merge get_outputs macros into define_node and include_definition
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
{
|
||||
"value": {
|
||||
"type": "float",
|
||||
"value": 0.1,
|
||||
"internal": true
|
||||
"outputs": [
|
||||
"float"
|
||||
],
|
||||
"inputs": {
|
||||
"value": {
|
||||
"type": "float",
|
||||
"value": 0.1,
|
||||
"internal": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user