Skip to content

Commit ea82e62

Browse files
committed
Support engine execution for KCL commands
This is around 20x faster on large models. Set ENGINE_EXECUTION to any nonempty string to activate. Off by default.
1 parent d038ace commit ea82e62

8 files changed

Lines changed: 792 additions & 39 deletions

File tree

Cargo.lock

Lines changed: 133 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ members = ["cli-macro", "cli-macro-impl"]
1313
anyhow = { version = "1", features = ["backtrace"] }
1414
async-trait = "0.1.88"
1515
base64 = "0.22.1"
16+
camino = "1.2.4"
1617
chrono = { version = "0.4", default-features = false, features = ["serde"] }
1718
clap = { version = "4.6.1", features = [
1819
"cargo",
@@ -39,6 +40,7 @@ image = { version = "0.25", default-features = false, features = [
3940
"jpeg",
4041
] }
4142
itertools = "0.15.0"
43+
kcl-error = "=0.2.167"
4244
kcl-lib = { version = "=0.2.167", features = ["disable-println"] }
4345
kcl-test-server = "=0.2.167"
4446
kittycad = { version = "0.4.12", features = [
@@ -47,7 +49,7 @@ kittycad = { version = "0.4.12", features = [
4749
"requests",
4850
"retry",
4951
] }
50-
kittycad-modeling-cmds = { version = "0.2.208", features = [
52+
kittycad-modeling-cmds = { version = "0.2.209", features = [
5153
"websocket",
5254
"tabled",
5355
] }
@@ -73,6 +75,7 @@ reqwest = { version = "0.12", default-features = false, features = [
7375
"deflate",
7476
] }
7577
ring = "0.17.14"
78+
rmp-serde = "1"
7679
serde = { version = "1", features = ["derive"] }
7780
serde_json = "1"
7881
serde_yaml = "0.9"
@@ -121,5 +124,6 @@ incremental = true
121124
debug = 0
122125

123126
[patch.crates-io]
124-
# kcl-lib = { git = "https://github.com/KittyCAD/modeling-app", branch = "main" }
125-
# kittycad-modeling-cmds = { git = "https://github.com/KittyCAD/modeling-api", branch = "achalmers/remove-cruft"}
127+
kcl-lib = { git = "https://github.com/KittyCAD/modeling-app", rev = "16dee6595e8585a4aeaddcde435cda2d85b489ed" }
128+
kcl-test-server = { git = "https://github.com/KittyCAD/modeling-app", rev = "16dee6595e8585a4aeaddcde435cda2d85b489ed" }
129+
kittycad-modeling-cmds = { git = "https://github.com/KittyCAD/modeling-api", branch = "main" }

do.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
cargo build && \
2+
ZOO_API_TOKEN=foo ZOO_HOST=http://localhost:8080 \
3+
time ./target/debug/zoo kcl snapshot \
4+
--angle four-ways \
5+
DOHC-VVT-Inline-4-Inspired-Internals render.png && \
6+
open render.png

0 commit comments

Comments
 (0)