Skip to content

Commit 290825a

Browse files
authored
Release 180 and bump kcl (#1704)
1 parent 69d4393 commit 290825a

3 files changed

Lines changed: 36 additions & 17 deletions

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "zoo"
3-
version = "0.2.179"
3+
version = "0.2.180"
44
edition = "2021"
55
rust-version = "1.95"
66
build = "build.rs"
@@ -39,8 +39,8 @@ image = { version = "0.25", default-features = false, features = [
3939
"jpeg",
4040
] }
4141
itertools = "0.15.0"
42-
kcl-lib = { version = "=0.2.166", features = ["disable-println"] }
43-
kcl-test-server = "=0.2.166"
42+
kcl-lib = { version = "=0.2.167", features = ["disable-println"] }
43+
kcl-test-server = "=0.2.167"
4444
kittycad = { version = "0.4.12", features = [
4545
"clap",
4646
"tabled",

src/cmd_kcl.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::{net::SocketAddr, path::Path, str::FromStr};
33
use anyhow::Result;
44
use clap::Parser;
55
use image::{DynamicImage, ImageReader};
6-
use kcl_lib::{ToLspRange, TypedPath};
6+
use kcl_lib::{unit_conversion::ToKcmc, ToLspRange, TypedPath};
77
use kcmc::{format::OutputFormat3d as OutputFormat, ok_response::OkModelingCmdResponse};
88
use kittycad::types as kt;
99
use kittycad_modeling_cmds::{self as kcmc, units::UnitLength, websocket::ModelingSessionData};
@@ -156,7 +156,7 @@ impl crate::cmd::Command for CmdKclExport {
156156
let program = kcl_lib::Program::parse_no_errs(&code)
157157
.map_err(|err| kcl_error_fmt::into_miette_for_parse(&filepath.display().to_string(), &code, err))?;
158158
let meta_settings = program.meta_settings()?.unwrap_or_default();
159-
let units: UnitLength = meta_settings.default_length_units;
159+
let units: UnitLength = meta_settings.default_length_units.to_kcmc();
160160

161161
let client = ctx.api_client("")?;
162162
let ectx = kcl_lib::ExecutorContext::new(&client, settings).await?;

0 commit comments

Comments
 (0)