A few DSP blocks

This commit is contained in:
2026-03-06 19:55:31 +01:00
parent 5f86cb2cd6
commit af9308c070
19 changed files with 799 additions and 37 deletions

View File

@ -2,6 +2,15 @@
# It is not intended for manual editing.
version = 4
[[package]]
name = "ntw_flowgraph_macros"
version = "0.1.0"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "proc-macro2"
version = "1.0.106"
@ -20,15 +29,6 @@ dependencies = [
"proc-macro2",
]
[[package]]
name = "streams_macros"
version = "0.1.0"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "syn"
version = "2.0.117"

View File

@ -113,10 +113,13 @@ pub fn block_derive(item: TokenStream) -> TokenStream
let set_index_func = set_block_index_func(&derive);
let get_successors_func = get_successors_func(&derive);
let struct_path = input.ident;
let struct_where = input.generics.where_clause.clone();
let struct_generics = input.generics;
//item
quote! {
impl Block for #struct_path
impl #struct_generics ntw_flowgraph::Block for #struct_path #struct_generics
#struct_where
{
#set_index_func
#get_successors_func