aboutsummaryrefslogtreecommitdiff
path: root/graph_macro/src
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2024-01-08 16:13:19 +0800
committerJSDurand <mmemmew@gmail.com>2024-01-08 16:13:19 +0800
commit3ae0cf9898485a2ec35df7d23cd274e7dea5796d (patch)
tree35acbd1223288eb6f62ab281b57845c0ce2ed1c5 /graph_macro/src
parent55f7068e91182dfe458fad41c3251388ea461569 (diff)
a commit before the forst query
I think the main functionalities are already there, but the lack of querying capabilities makes this not very useful at the moment. This commit is right before an attempt to add this missing piece.
Diffstat (limited to 'graph_macro/src')
-rw-r--r--graph_macro/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/graph_macro/src/lib.rs b/graph_macro/src/lib.rs
index 3b7742a..409e6db 100644
--- a/graph_macro/src/lib.rs
+++ b/graph_macro/src/lib.rs
@@ -137,6 +137,8 @@ macro_rules! myerror {
};
}
+/// Derive macro generating an implementation of the trait `Graph`
+/// inheriting a field.
#[proc_macro_derive(Graph, attributes(graph))]
pub fn graph_derive(input: TokenStream) -> TokenStream {
let mut input = input.into_iter().peekable();