Skip to content

Commit fb9bdb0

Browse files
authored
Release 142 (#1421)
* Release 142 * Change to use the new builder API
1 parent 88a8d5c commit fb9bdb0

File tree

8 files changed

+203
-124
lines changed

8 files changed

+203
-124
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "zoo"
3-
version = "0.2.141"
3+
version = "0.2.142"
44
edition = "2021"
55
build = "build.rs"
66

@@ -37,15 +37,15 @@ image = { version = "0.25", default-features = false, features = [
3737
"jpeg",
3838
] }
3939
itertools = "0.12.1"
40-
kcl-lib = { version = "=0.2.119", features = ["disable-println"] }
41-
kcl-test-server = "=0.1.119"
40+
kcl-lib = { version = "=0.2.120", features = ["disable-println"] }
41+
kcl-test-server = "=0.1.120"
4242
kittycad = { version = "0.4.5", features = [
4343
"clap",
4444
"tabled",
4545
"requests",
4646
"retry",
4747
] }
48-
kittycad-modeling-cmds = { version = "=0.2.151", features = [
48+
kittycad-modeling-cmds = { version = "=0.2.159", features = [
4949
"websocket",
5050
"convert_client_crate",
5151
"tabled",

src/cmd_file.rs

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,12 @@ impl crate::cmd::Command for CmdFileSnapshot {
284284
.send_modeling_cmd(
285285
uuid::Uuid::new_v4(),
286286
kcl_lib::SourceRange::default(),
287-
&kcmc::ModelingCmd::ImportFiles(kcmc::ImportFiles {
288-
files: files.into_iter().map(|f| f.into()).collect(),
289-
format: src_format.into(),
290-
}),
287+
&kcmc::ModelingCmd::ImportFiles(
288+
kcmc::ImportFiles::builder()
289+
.files(files.into_iter().map(|f| f.into()).collect())
290+
.format(src_format.into())
291+
.build(),
292+
),
291293
)
292294
.await?;
293295

@@ -306,7 +308,9 @@ impl crate::cmd::Command for CmdFileSnapshot {
306308
uuid::Uuid::new_v4(),
307309
kcl_lib::SourceRange::default(),
308310
&kittycad_modeling_cmds::ModelingCmd::DefaultCameraFocusOn(
309-
kittycad_modeling_cmds::DefaultCameraFocusOn { uuid: object_id },
311+
kittycad_modeling_cmds::DefaultCameraFocusOn::builder()
312+
.uuid(object_id)
313+
.build(),
310314
),
311315
)
312316
.await?;
@@ -317,9 +321,11 @@ impl crate::cmd::Command for CmdFileSnapshot {
317321
.send_modeling_cmd(
318322
uuid::Uuid::new_v4(),
319323
kcl_lib::SourceRange::default(),
320-
&kittycad_modeling_cmds::ModelingCmd::TakeSnapshot(kittycad_modeling_cmds::TakeSnapshot {
321-
format: output_format,
322-
}),
324+
&kittycad_modeling_cmds::ModelingCmd::TakeSnapshot(
325+
kittycad_modeling_cmds::TakeSnapshot::builder()
326+
.format(output_format)
327+
.build(),
328+
),
323329
)
324330
.await?;
325331

0 commit comments

Comments
 (0)