-
Notifications
You must be signed in to change notification settings - Fork 0
/
diagram.d2
64 lines (53 loc) · 1.12 KB
/
diagram.d2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
vars: {
d2-config: {
layout-engine: elk
# Terminal theme code
theme-id: 300
}
}
user: {
shape: person
width: 130
}
developer: {
shape: person
width: 130
}
project: {
test: {
sample test
input test
cli test
}
benches: {
year
day
}
binary: {
advent-rs: {shape: hexagon}
}
library: {
solve(): {
shape: stored_data
style.multiple: true
}
individual year
solve() -> individual year: 2015
solve() -> individual year: 2016
solve() -> individual year: 2016
individual day
individual year -> individual day
}
}
user -> project.library: use crate {
style.stroke-dash: 3
}
user -> project.binary.advent-rs: command line
developer -> project.test: test exercises
developer -> project.benches: run benchmark
project.binary.advent-rs -> project.library.solve()
project.test.cli test -> project.binary.advent-rs
project.test.input test -> project.library.individual year
project.test.sample test -> project.library.individual day
project.benches.year -> project.library.individual year
project.benches.day -> project.library.individual day