Skip to content

Commit

Permalink
bump kcl (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
paultag authored Oct 11, 2024
1 parent 213f73c commit 8a7c164
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 49 deletions.
94 changes: 50 additions & 44 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zoo-kcl"
version = "0.1.39"
version = "0.1.40"
edition = "2021"
repository = "https://github.com/kittycad/kcl.py"

Expand All @@ -11,7 +11,7 @@ crate-type = ["cdylib"]

[dependencies]
anyhow = "1.0.89"
kcl-lib = { version = "0.2.20", features = ["pyo3", "disable-println"] }
kcl-lib = { version = "0.2.21", features = ["pyo3", "disable-println"] }
kittycad = "0.3.23"
kittycad-modeling-cmds = "0.2.69"
pyo3 = { version = "0.22.2", features = ["serde", "experimental-async"] }
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ async fn execute(code: String, units: UnitLength) -> PyResult<()> {
.await
.map_err(|err| pyo3::exceptions::PyException::new_err(err.to_string()))?;
// Execute the program.
let _ = ctx.run(&program, None).await?;
let _ = ctx.run(&program, None, Default::default()).await?;

Ok(())
})
Expand All @@ -253,7 +253,7 @@ async fn execute_and_snapshot(code: String, units: UnitLength, image_format: Ima
.await
.map_err(|err| pyo3::exceptions::PyException::new_err(err.to_string()))?;
// Execute the program.
let _ = ctx.run(&program, None).await?;
let _ = ctx.run(&program, None, Default::default()).await?;

// Zoom to fit.
ctx.engine
Expand Down Expand Up @@ -312,7 +312,7 @@ async fn execute_and_export(
.await
.map_err(|err| pyo3::exceptions::PyException::new_err(err.to_string()))?;
// Execute the program.
let _ = ctx.run(&program, None).await?;
let _ = ctx.run(&program, None, Default::default()).await?;

// This will not return until there are files.
let resp = ctx
Expand Down

0 comments on commit 8a7c164

Please sign in to comment.