dot-parser-macros 0.2.0

This crate contains companion proc macros for the dot_parser crate.
Documentation
1
2
3
4
5
6
7
8
9
use dot_parser::canonical::Graph as CanonicalGraph;
use dot_parser_macros::*;
use petgraph::graph::Graph as PetGraph;

fn main() {
    let petgraph: PetGraph<_, _> =
        CanonicalGraph::from(from_dot_string!("digraph { A -> B}")).into();
    println!("{:#?}", petgraph);
}