3次发布
0.1.3 |
|
---|---|
0.1.2 | 2020年10月27日 |
0.1.1 | 2020年10月26日 |
0.1.0 | 2020年10月26日 |
#250 in 数据库实现
60,602 每月下载量
28KB
691 行
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())],
);
}
依赖关系
~0.4–1MB
~22K SLoC