Move the wasm lib, and cleanup rust directory and all references (#5585)
* git mv src/wasm-lib rust Signed-off-by: Jess Frazelle <github@jessfraz.com> * mv wasm-lib to workspace Signed-off-by: Jess Frazelle <github@jessfraz.com> * mv kcl-lib Signed-off-by: Jess Frazelle <github@jessfraz.com> * mv derive docs Signed-off-by: Jess Frazelle <github@jessfraz.com> * resolve file paths Signed-off-by: Jess Frazelle <github@jessfraz.com> * clippy Signed-off-by: Jess Frazelle <github@jessfraz.com> * move more shit Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix more paths Signed-off-by: Jess Frazelle <github@jessfraz.com> * make yarn build:wasm work Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix scripts Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixups Signed-off-by: Jess Frazelle <github@jessfraz.com> * better references Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix cargo ci Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix reference Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix more ci Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix tests Signed-off-by: Jess Frazelle <github@jessfraz.com> * cargo sort Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix script Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix Signed-off-by: Jess Frazelle <github@jessfraz.com> * fmt Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix a dep Signed-off-by: Jess Frazelle <github@jessfraz.com> * sort Signed-off-by: Jess Frazelle <github@jessfraz.com> * remove unused deps Signed-off-by: Jess Frazelle <github@jessfraz.com> * Revert "remove unused deps" This reverts commit fbabdb062e275fd5cbc1476f8480a1afee15d972. * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * deps; Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
1840
rust/kcl-lib/tests/poop_chute/artifact_commands.snap
Normal file
1840
rust/kcl-lib/tests/poop_chute/artifact_commands.snap
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,6 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
description: Artifact graph flowchart poop_chute.kcl
|
||||
extension: md
|
||||
snapshot_kind: binary
|
||||
---
|
||||
315
rust/kcl-lib/tests/poop_chute/artifact_graph_flowchart.snap.md
Normal file
315
rust/kcl-lib/tests/poop_chute/artifact_graph_flowchart.snap.md
Normal file
@ -0,0 +1,315 @@
|
||||
```mermaid
|
||||
flowchart LR
|
||||
subgraph path2 [Path]
|
||||
2["Path<br>[208, 252, 0]"]
|
||||
3["Segment<br>[258, 286, 0]"]
|
||||
4["Segment<br>[292, 355, 0]"]
|
||||
5["Segment<br>[361, 379, 0]"]
|
||||
6["Segment<br>[385, 410, 0]"]
|
||||
7["Segment<br>[416, 442, 0]"]
|
||||
8["Segment<br>[448, 547, 0]"]
|
||||
9["Segment<br>[553, 578, 0]"]
|
||||
10["Segment<br>[584, 662, 0]"]
|
||||
11["Segment<br>[668, 686, 0]"]
|
||||
12["Segment<br>[692, 705, 0]"]
|
||||
13["Segment<br>[711, 737, 0]"]
|
||||
14["Segment<br>[743, 789, 0]"]
|
||||
15["Segment<br>[795, 803, 0]"]
|
||||
16[Solid2d]
|
||||
end
|
||||
subgraph path60 [Path]
|
||||
60["Path<br>[992, 1036, 0]"]
|
||||
61["Segment<br>[1042, 1070, 0]"]
|
||||
62["Segment<br>[1076, 1139, 0]"]
|
||||
63["Segment<br>[1145, 1163, 0]"]
|
||||
64["Segment<br>[1169, 1194, 0]"]
|
||||
65["Segment<br>[1200, 1226, 0]"]
|
||||
66["Segment<br>[1232, 1331, 0]"]
|
||||
67["Segment<br>[1337, 1362, 0]"]
|
||||
68["Segment<br>[1368, 1446, 0]"]
|
||||
69["Segment<br>[1452, 1470, 0]"]
|
||||
70["Segment<br>[1476, 1489, 0]"]
|
||||
71["Segment<br>[1495, 1521, 0]"]
|
||||
72["Segment<br>[1527, 1573, 0]"]
|
||||
73["Segment<br>[1579, 1587, 0]"]
|
||||
74[Solid2d]
|
||||
end
|
||||
1["Plane<br>[182, 202, 0]"]
|
||||
17["Sweep Revolve<br>[814, 952, 0]"]
|
||||
18[Wall]
|
||||
19[Wall]
|
||||
20[Wall]
|
||||
21[Wall]
|
||||
22[Wall]
|
||||
23[Wall]
|
||||
24[Wall]
|
||||
25[Wall]
|
||||
26[Wall]
|
||||
27[Wall]
|
||||
28[Wall]
|
||||
29[Wall]
|
||||
30[Wall]
|
||||
31["Cap Start"]
|
||||
32["Cap End"]
|
||||
33["SweepEdge Opposite"]
|
||||
34["SweepEdge Adjacent"]
|
||||
35["SweepEdge Opposite"]
|
||||
36["SweepEdge Adjacent"]
|
||||
37["SweepEdge Opposite"]
|
||||
38["SweepEdge Adjacent"]
|
||||
39["SweepEdge Opposite"]
|
||||
40["SweepEdge Adjacent"]
|
||||
41["SweepEdge Opposite"]
|
||||
42["SweepEdge Adjacent"]
|
||||
43["SweepEdge Opposite"]
|
||||
44["SweepEdge Adjacent"]
|
||||
45["SweepEdge Opposite"]
|
||||
46["SweepEdge Adjacent"]
|
||||
47["SweepEdge Opposite"]
|
||||
48["SweepEdge Adjacent"]
|
||||
49["SweepEdge Opposite"]
|
||||
50["SweepEdge Adjacent"]
|
||||
51["SweepEdge Opposite"]
|
||||
52["SweepEdge Adjacent"]
|
||||
53["SweepEdge Opposite"]
|
||||
54["SweepEdge Adjacent"]
|
||||
55["SweepEdge Opposite"]
|
||||
56["SweepEdge Adjacent"]
|
||||
57["SweepEdge Opposite"]
|
||||
58["SweepEdge Adjacent"]
|
||||
59["Plane<br>[966, 986, 0]"]
|
||||
75["Sweep Extrusion<br>[1593, 1631, 0]"]
|
||||
76[Wall]
|
||||
77[Wall]
|
||||
78[Wall]
|
||||
79[Wall]
|
||||
80[Wall]
|
||||
81[Wall]
|
||||
82[Wall]
|
||||
83[Wall]
|
||||
84[Wall]
|
||||
85[Wall]
|
||||
86[Wall]
|
||||
87[Wall]
|
||||
88[Wall]
|
||||
89["Cap Start"]
|
||||
90["Cap End"]
|
||||
91["SweepEdge Opposite"]
|
||||
92["SweepEdge Adjacent"]
|
||||
93["SweepEdge Opposite"]
|
||||
94["SweepEdge Adjacent"]
|
||||
95["SweepEdge Opposite"]
|
||||
96["SweepEdge Adjacent"]
|
||||
97["SweepEdge Opposite"]
|
||||
98["SweepEdge Adjacent"]
|
||||
99["SweepEdge Opposite"]
|
||||
100["SweepEdge Adjacent"]
|
||||
101["SweepEdge Opposite"]
|
||||
102["SweepEdge Adjacent"]
|
||||
103["SweepEdge Opposite"]
|
||||
104["SweepEdge Adjacent"]
|
||||
105["SweepEdge Opposite"]
|
||||
106["SweepEdge Adjacent"]
|
||||
107["SweepEdge Opposite"]
|
||||
108["SweepEdge Adjacent"]
|
||||
109["SweepEdge Opposite"]
|
||||
110["SweepEdge Adjacent"]
|
||||
111["SweepEdge Opposite"]
|
||||
112["SweepEdge Adjacent"]
|
||||
113["SweepEdge Opposite"]
|
||||
114["SweepEdge Adjacent"]
|
||||
115["SweepEdge Opposite"]
|
||||
116["SweepEdge Adjacent"]
|
||||
1 --- 2
|
||||
2 --- 3
|
||||
2 --- 4
|
||||
2 --- 5
|
||||
2 --- 6
|
||||
2 --- 7
|
||||
2 --- 8
|
||||
2 --- 9
|
||||
2 --- 10
|
||||
2 --- 11
|
||||
2 --- 12
|
||||
2 --- 13
|
||||
2 --- 14
|
||||
2 --- 15
|
||||
2 ---- 17
|
||||
2 --- 16
|
||||
3 --- 18
|
||||
3 --- 33
|
||||
3 --- 34
|
||||
4 --- 19
|
||||
4 --- 35
|
||||
4 --- 36
|
||||
5 --- 20
|
||||
5 --- 37
|
||||
5 --- 38
|
||||
6 --- 21
|
||||
6 --- 39
|
||||
6 --- 40
|
||||
7 --- 22
|
||||
7 --- 41
|
||||
7 --- 42
|
||||
8 --- 23
|
||||
8 --- 43
|
||||
8 --- 44
|
||||
9 --- 24
|
||||
9 --- 45
|
||||
9 --- 46
|
||||
10 --- 25
|
||||
10 --- 47
|
||||
10 --- 48
|
||||
11 --- 26
|
||||
11 --- 49
|
||||
11 --- 50
|
||||
12 --- 27
|
||||
12 --- 51
|
||||
12 --- 52
|
||||
13 --- 28
|
||||
13 --- 53
|
||||
13 --- 54
|
||||
14 --- 29
|
||||
14 --- 55
|
||||
14 --- 56
|
||||
15 --- 30
|
||||
15 --- 57
|
||||
15 --- 58
|
||||
17 --- 18
|
||||
17 --- 19
|
||||
17 --- 20
|
||||
17 --- 21
|
||||
17 --- 22
|
||||
17 --- 23
|
||||
17 --- 24
|
||||
17 --- 25
|
||||
17 --- 26
|
||||
17 --- 27
|
||||
17 --- 28
|
||||
17 --- 29
|
||||
17 --- 30
|
||||
17 --- 31
|
||||
17 --- 32
|
||||
17 --- 33
|
||||
17 --- 34
|
||||
17 --- 35
|
||||
17 --- 36
|
||||
17 --- 37
|
||||
17 --- 38
|
||||
17 --- 39
|
||||
17 --- 40
|
||||
17 --- 41
|
||||
17 --- 42
|
||||
17 --- 43
|
||||
17 --- 44
|
||||
17 --- 45
|
||||
17 --- 46
|
||||
17 --- 47
|
||||
17 --- 48
|
||||
17 --- 49
|
||||
17 --- 50
|
||||
17 --- 51
|
||||
17 --- 52
|
||||
17 --- 53
|
||||
17 --- 54
|
||||
17 --- 55
|
||||
17 --- 56
|
||||
17 --- 57
|
||||
17 --- 58
|
||||
59 --- 60
|
||||
60 --- 61
|
||||
60 --- 62
|
||||
60 --- 63
|
||||
60 --- 64
|
||||
60 --- 65
|
||||
60 --- 66
|
||||
60 --- 67
|
||||
60 --- 68
|
||||
60 --- 69
|
||||
60 --- 70
|
||||
60 --- 71
|
||||
60 --- 72
|
||||
60 --- 73
|
||||
60 ---- 75
|
||||
60 --- 74
|
||||
61 --- 76
|
||||
61 --- 91
|
||||
61 --- 92
|
||||
62 --- 77
|
||||
62 --- 93
|
||||
62 --- 94
|
||||
63 --- 78
|
||||
63 --- 95
|
||||
63 --- 96
|
||||
64 --- 79
|
||||
64 --- 97
|
||||
64 --- 98
|
||||
65 --- 80
|
||||
65 --- 99
|
||||
65 --- 100
|
||||
66 --- 81
|
||||
66 --- 101
|
||||
66 --- 102
|
||||
67 --- 82
|
||||
67 --- 103
|
||||
67 --- 104
|
||||
68 --- 83
|
||||
68 --- 105
|
||||
68 --- 106
|
||||
69 --- 84
|
||||
69 --- 107
|
||||
69 --- 108
|
||||
70 --- 85
|
||||
70 --- 109
|
||||
70 --- 110
|
||||
71 --- 86
|
||||
71 --- 111
|
||||
71 --- 112
|
||||
72 --- 87
|
||||
72 --- 113
|
||||
72 --- 114
|
||||
73 --- 88
|
||||
73 --- 115
|
||||
73 --- 116
|
||||
75 --- 76
|
||||
75 --- 77
|
||||
75 --- 78
|
||||
75 --- 79
|
||||
75 --- 80
|
||||
75 --- 81
|
||||
75 --- 82
|
||||
75 --- 83
|
||||
75 --- 84
|
||||
75 --- 85
|
||||
75 --- 86
|
||||
75 --- 87
|
||||
75 --- 88
|
||||
75 --- 89
|
||||
75 --- 90
|
||||
75 --- 91
|
||||
75 --- 92
|
||||
75 --- 93
|
||||
75 --- 94
|
||||
75 --- 95
|
||||
75 --- 96
|
||||
75 --- 97
|
||||
75 --- 98
|
||||
75 --- 99
|
||||
75 --- 100
|
||||
75 --- 101
|
||||
75 --- 102
|
||||
75 --- 103
|
||||
75 --- 104
|
||||
75 --- 105
|
||||
75 --- 106
|
||||
75 --- 107
|
||||
75 --- 108
|
||||
75 --- 109
|
||||
75 --- 110
|
||||
75 --- 111
|
||||
75 --- 112
|
||||
75 --- 113
|
||||
75 --- 114
|
||||
75 --- 115
|
||||
75 --- 116
|
||||
```
|
||||
2135
rust/kcl-lib/tests/poop_chute/ast.snap
Normal file
2135
rust/kcl-lib/tests/poop_chute/ast.snap
Normal file
File diff suppressed because it is too large
Load Diff
64
rust/kcl-lib/tests/poop_chute/input.kcl
Normal file
64
rust/kcl-lib/tests/poop_chute/input.kcl
Normal file
@ -0,0 +1,64 @@
|
||||
wall_thickness = 0.125
|
||||
back_walls_width = 2
|
||||
front_walls_width = 2.5
|
||||
height = 5.5
|
||||
filletRadius = 0.050
|
||||
back_length = 7
|
||||
exit_height = 1
|
||||
front_length = 6
|
||||
Fx = 0.5
|
||||
Fy = 0.5
|
||||
|
||||
sketch001 = startSketchOn('-YZ')
|
||||
|> startProfileAt([back_walls_width / 2, 0], %)
|
||||
|> xLine(wall_thickness / 2, %)
|
||||
|> angledLineToX({ angle = 45, to = back_walls_width }, %, $seg01)
|
||||
|> yLineTo(height, %)
|
||||
|> xLine(-wall_thickness, %)
|
||||
|> yLineTo(segEndY(seg01), %)
|
||||
|> angledLineToX({
|
||||
angle = 45,
|
||||
to = back_walls_width / 2 + wall_thickness / 2
|
||||
}, %)
|
||||
|> xLine(-wall_thickness, %)
|
||||
|> angledLineToX({
|
||||
angle = 180 - 45,
|
||||
to = wall_thickness
|
||||
}, %)
|
||||
|> yLineTo(height, %)
|
||||
|> xLineTo(0, %)
|
||||
|> yLineTo(segEndY(seg01), %)
|
||||
|> angledLineToY({ angle = 180 - 45, to = 0 }, %)
|
||||
|> close(%)
|
||||
part001 = revolve({
|
||||
angle = 90,
|
||||
axis = {
|
||||
custom = {
|
||||
axis = [1.0, 0.0],
|
||||
origin = [0.0, height + .0000001]
|
||||
}
|
||||
}
|
||||
}, sketch001)
|
||||
|
||||
sketch002 = startSketchOn('-YZ')
|
||||
|> startProfileAt([back_walls_width / 2, 0], %)
|
||||
|> xLine(wall_thickness / 2, %)
|
||||
|> angledLineToX({ angle = 45, to = back_walls_width }, %, $seg02)
|
||||
|> yLineTo(height, %)
|
||||
|> xLine(-wall_thickness, %)
|
||||
|> yLineTo(segEndY(seg01), %)
|
||||
|> angledLineToX({
|
||||
angle = 45,
|
||||
to = back_walls_width / 2 + wall_thickness / 2
|
||||
}, %)
|
||||
|> xLine(-wall_thickness, %)
|
||||
|> angledLineToX({
|
||||
angle = 180 - 45,
|
||||
to = wall_thickness
|
||||
}, %)
|
||||
|> yLineTo(height, %)
|
||||
|> xLineTo(0, %)
|
||||
|> yLineTo(segEndY(seg02), %)
|
||||
|> angledLineToY({ angle = 180 - 45, to = 0 }, %)
|
||||
|> close(%)
|
||||
|> extrude(length = back_length - height)
|
||||
218
rust/kcl-lib/tests/poop_chute/ops.snap
Normal file
218
rust/kcl-lib/tests/poop_chute/ops.snap
Normal file
@ -0,0 +1,218 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
description: Operations executed poop_chute.kcl
|
||||
---
|
||||
[
|
||||
{
|
||||
"labeledArgs": {
|
||||
"data": {
|
||||
"value": {
|
||||
"type": "String",
|
||||
"value": "-YZ"
|
||||
},
|
||||
"sourceRange": [
|
||||
196,
|
||||
201,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "startSketchOn",
|
||||
"sourceRange": [
|
||||
182,
|
||||
202,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": null
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"data": {
|
||||
"value": {
|
||||
"type": "Object",
|
||||
"value": {
|
||||
"angle": {
|
||||
"type": "Number",
|
||||
"value": 90.0,
|
||||
"ty": {
|
||||
"type": "Default",
|
||||
"len": {
|
||||
"type": "Mm"
|
||||
},
|
||||
"angle": {
|
||||
"type": "Degrees"
|
||||
}
|
||||
}
|
||||
},
|
||||
"axis": {
|
||||
"type": "Object",
|
||||
"value": {
|
||||
"custom": {
|
||||
"type": "Object",
|
||||
"value": {
|
||||
"axis": {
|
||||
"type": "Array",
|
||||
"value": [
|
||||
{
|
||||
"type": "Number",
|
||||
"value": 1.0,
|
||||
"ty": {
|
||||
"type": "Default",
|
||||
"len": {
|
||||
"type": "Mm"
|
||||
},
|
||||
"angle": {
|
||||
"type": "Degrees"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Number",
|
||||
"value": 0.0,
|
||||
"ty": {
|
||||
"type": "Default",
|
||||
"len": {
|
||||
"type": "Mm"
|
||||
},
|
||||
"angle": {
|
||||
"type": "Degrees"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"origin": {
|
||||
"type": "Array",
|
||||
"value": [
|
||||
{
|
||||
"type": "Number",
|
||||
"value": 0.0,
|
||||
"ty": {
|
||||
"type": "Default",
|
||||
"len": {
|
||||
"type": "Mm"
|
||||
},
|
||||
"angle": {
|
||||
"type": "Degrees"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Number",
|
||||
"value": 5.5000001,
|
||||
"ty": {
|
||||
"type": "Default",
|
||||
"len": {
|
||||
"type": "Mm"
|
||||
},
|
||||
"angle": {
|
||||
"type": "Degrees"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
822,
|
||||
940,
|
||||
0
|
||||
]
|
||||
},
|
||||
"sketch": {
|
||||
"value": {
|
||||
"type": "Sketch",
|
||||
"value": {
|
||||
"artifactId": "[uuid]"
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
942,
|
||||
951,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "revolve",
|
||||
"sourceRange": [
|
||||
814,
|
||||
952,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": null
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"data": {
|
||||
"value": {
|
||||
"type": "String",
|
||||
"value": "-YZ"
|
||||
},
|
||||
"sourceRange": [
|
||||
980,
|
||||
985,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "startSketchOn",
|
||||
"sourceRange": [
|
||||
966,
|
||||
986,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": null
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"length": {
|
||||
"value": {
|
||||
"type": "Number",
|
||||
"value": 1.5,
|
||||
"ty": {
|
||||
"type": "Default",
|
||||
"len": {
|
||||
"type": "Mm"
|
||||
},
|
||||
"angle": {
|
||||
"type": "Degrees"
|
||||
}
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1610,
|
||||
1630,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "extrude",
|
||||
"sourceRange": [
|
||||
1593,
|
||||
1631,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": {
|
||||
"value": {
|
||||
"type": "Sketch",
|
||||
"value": {
|
||||
"artifactId": "[uuid]"
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
2021
rust/kcl-lib/tests/poop_chute/program_memory.snap
Normal file
2021
rust/kcl-lib/tests/poop_chute/program_memory.snap
Normal file
File diff suppressed because it is too large
Load Diff
BIN
rust/kcl-lib/tests/poop_chute/rendered_model.png
Normal file
BIN
rust/kcl-lib/tests/poop_chute/rendered_model.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 76 KiB |
Reference in New Issue
Block a user