summaryrefslogtreecommitdiff
path: root/graph_macro
diff options
context:
space:
mode:
Diffstat (limited to 'graph_macro')
-rw-r--r--graph_macro/src/lib.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/graph_macro/src/lib.rs b/graph_macro/src/lib.rs
index 5a0672b..a55efbb 100644
--- a/graph_macro/src/lib.rs
+++ b/graph_macro/src/lib.rs
@@ -1,12 +1,19 @@
+#![allow(unused_imports)]
//! This file provides a macro to delegate the implementation of a
//! type that wraps a graph. More precisely, the macro helps the
//! wrapper type implement the various Graph-related traits.
use proc_macro::TokenStream;
+use core::iter::Peekable;
+
#[proc_macro_derive(Testing)]
pub fn test_derive(input: TokenStream) -> TokenStream {
- println!("input: {input:?}");
+ let input = input.into_iter().peekable();
+
+ for tree in input {
+ println!("tree = {tree:?}");
+ }
TokenStream::new()
}