3 releases

0.1.3 Nov 11, 2020
0.1.2 Oct 27, 2020
0.1.1 Oct 26, 2020
0.1.0 Oct 26, 2020

#101 in Database implementations

Download history 15591/week @ 2024-07-28 14919/week @ 2024-08-04 15123/week @ 2024-08-11 14370/week @ 2024-08-18 14601/week @ 2024-08-25 15083/week @ 2024-09-01 14228/week @ 2024-09-08 14206/week @ 2024-09-15 14980/week @ 2024-09-22 14048/week @ 2024-09-29 15347/week @ 2024-10-06 13950/week @ 2024-10-13 15870/week @ 2024-10-20 16154/week @ 2024-10-27 16449/week @ 2024-11-03 15394/week @ 2024-11-10

65,699 downloads per month

MIT/Apache

28KB
691 lines

gsgdt

Generic Stringly typed Graph DataType

fn main() {
        let label1: String = "bb0__0_3".into();
        let label2: String = "bb0__1_3".into();
        let style: NodeStyle = Default::default();

        let nodes = vec![
            Node::new(
                vec!["_1 = const 1_i32".into(), "_2 = const 2_i32".into()],
                label1.clone(),
                "0".into(),
                style.clone(),
            ),
            Node::new(
                vec!["return".into()],
                label2.clone(),
                "1".into(),
                style.clone(),
            ),
        ];

        let g = Graph::new(
            "Mir_0_3".into(),
            GraphKind::Digraph,
            nodes,
            vec![Edge::new(label1, label2, "return".into())],
        );
}

Dependencies

~0.3–1MB
~21K SLoC