Restructure node graph proxy architecture

This commit is contained in:
Dennis
2022-04-03 19:25:07 +02:00
committed by Keavon Chambers
parent 6349edfeb3
commit 119e865007
11 changed files with 128 additions and 81 deletions

View File

@@ -1,8 +1,8 @@
[package]
name = "graph-proc-macros"
version = "0.1.0"
authors = ["Graphite Authors <contact@graphite.design>"]
edition = "2018"
authors = ["Dennis Kobert <dennis@kobert.dev>"]
edition = "2021"
publish = false
[lib]

View File

@@ -79,7 +79,8 @@ fn generate_to_string(parsed: ItemFn, string: String) -> TokenStream {
let x = quote! {
//#whole_function
mod #fn_name {
#(const #const_idents: DefaultNode<#types> = DefaultNode::new();)*
#[derive(Copy, Clone)]
type F32Node<'n> = &'n (dyn Node<'n, (), Output = &'n (dyn Any + 'static)> + 'n);
struct #struct_name {
#(#idents: #types,)*
}