bump kittycad.rs (#2196)
* update lib Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix tests Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
4
src-tauri/Cargo.lock
generated
4
src-tauri/Cargo.lock
generated
@ -2199,9 +2199,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "kittycad"
|
name = "kittycad"
|
||||||
version = "0.2.69"
|
version = "0.3.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "f14a17cc3c056804ad287f698ba54e569e0133b8e728fb18ec73e23a8bdad951"
|
checksum = "ddc922f0da3abc22661bf49423c9bfcc02ce6ae92dae007ede6990874789545b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"async-trait",
|
"async-trait",
|
||||||
|
@ -16,7 +16,7 @@ tauri-build = { version = "2.0.0-beta.12", features = [] }
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow = "1"
|
anyhow = "1"
|
||||||
kittycad = "0.2.69"
|
kittycad = "0.3.0"
|
||||||
oauth2 = "4.4.2"
|
oauth2 = "4.4.2"
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
|
16
src/wasm-lib/Cargo.lock
generated
16
src/wasm-lib/Cargo.lock
generated
@ -927,7 +927,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "derive-docs"
|
name = "derive-docs"
|
||||||
version = "0.1.15"
|
version = "0.1.16"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"Inflector",
|
"Inflector",
|
||||||
"anyhow",
|
"anyhow",
|
||||||
@ -1854,7 +1854,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "kcl-lib"
|
name = "kcl-lib"
|
||||||
version = "0.1.48"
|
version = "0.1.49"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"approx 0.5.1",
|
"approx 0.5.1",
|
||||||
@ -1921,9 +1921,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "kittycad"
|
name = "kittycad"
|
||||||
version = "0.2.69"
|
version = "0.3.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "f14a17cc3c056804ad287f698ba54e569e0133b8e728fb18ec73e23a8bdad951"
|
checksum = "ddc922f0da3abc22661bf49423c9bfcc02ce6ae92dae007ede6990874789545b"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"async-trait",
|
"async-trait",
|
||||||
@ -1959,9 +1959,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "kittycad-execution-plan"
|
name = "kittycad-execution-plan"
|
||||||
version = "0.1.4"
|
version = "0.1.5"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "acf8ffb148bd09de8889a8a2b3075a23ee86446c3a6e1c6dcf66b40fdc778158"
|
checksum = "ae99665cd699f8800da8ea4b01889c0c9c61619d2a9dc62d1d5028f1b21110bd"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bytes",
|
"bytes",
|
||||||
"gltf-json",
|
"gltf-json",
|
||||||
@ -2044,9 +2044,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "kittycad-modeling-session"
|
name = "kittycad-modeling-session"
|
||||||
version = "0.1.3"
|
version = "0.1.4"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "bae9bc47fcc3cc30727b35e738c35666b97e1e5f48f3f4c60ddaeccb69b66559"
|
checksum = "241d45ca828af2953bf538f312a3e9d6fa7fe83055c90f6b6b9ffa76f53b6285"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"futures",
|
"futures",
|
||||||
"kittycad",
|
"kittycad",
|
||||||
|
@ -61,12 +61,12 @@ members = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
kittycad = { version = "0.2.69", default-features = false, features = ["js", "requests"] }
|
kittycad = { version = "0.3.0", default-features = false, features = ["js", "requests"] }
|
||||||
kittycad-execution-plan = "0.1.4"
|
kittycad-execution-plan = "0.1.5"
|
||||||
kittycad-execution-plan-macros = "0.1.9"
|
kittycad-execution-plan-macros = "0.1.9"
|
||||||
kittycad-execution-plan-traits = "0.1.14"
|
kittycad-execution-plan-traits = "0.1.14"
|
||||||
kittycad-modeling-cmds = "0.2.20"
|
kittycad-modeling-cmds = "0.2.20"
|
||||||
kittycad-modeling-session = "0.1.3"
|
kittycad-modeling-session = "0.1.4"
|
||||||
|
|
||||||
[[test]]
|
[[test]]
|
||||||
name = "executor"
|
name = "executor"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "derive-docs"
|
name = "derive-docs"
|
||||||
description = "A tool for generating documentation from Rust derive macros"
|
description = "A tool for generating documentation from Rust derive macros"
|
||||||
version = "0.1.15"
|
version = "0.1.16"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
repository = "https://github.com/KittyCAD/modeling-app"
|
repository = "https://github.com/KittyCAD/modeling-app"
|
||||||
|
@ -794,7 +794,7 @@ fn generate_code_block_test(
|
|||||||
uuid::Uuid::new_v4(),
|
uuid::Uuid::new_v4(),
|
||||||
crate::executor::SourceRange::default(),
|
crate::executor::SourceRange::default(),
|
||||||
kittycad::types::ModelingCmd::ZoomToFit {
|
kittycad::types::ModelingCmd::ZoomToFit {
|
||||||
object_ids: Some(Default::default()),
|
object_ids: Default::default(),
|
||||||
padding: 0.1,
|
padding: 0.1,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
@ -38,7 +38,7 @@ mod test_examples_show {
|
|||||||
uuid::Uuid::new_v4(),
|
uuid::Uuid::new_v4(),
|
||||||
crate::executor::SourceRange::default(),
|
crate::executor::SourceRange::default(),
|
||||||
kittycad::types::ModelingCmd::ZoomToFit {
|
kittycad::types::ModelingCmd::ZoomToFit {
|
||||||
object_ids: Some(Default::default()),
|
object_ids: Default::default(),
|
||||||
padding: 0.1,
|
padding: 0.1,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
@ -115,7 +115,7 @@ mod test_examples_show {
|
|||||||
uuid::Uuid::new_v4(),
|
uuid::Uuid::new_v4(),
|
||||||
crate::executor::SourceRange::default(),
|
crate::executor::SourceRange::default(),
|
||||||
kittycad::types::ModelingCmd::ZoomToFit {
|
kittycad::types::ModelingCmd::ZoomToFit {
|
||||||
object_ids: Some(Default::default()),
|
object_ids: Default::default(),
|
||||||
padding: 0.1,
|
padding: 0.1,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
@ -38,7 +38,7 @@ mod test_examples_show {
|
|||||||
uuid::Uuid::new_v4(),
|
uuid::Uuid::new_v4(),
|
||||||
crate::executor::SourceRange::default(),
|
crate::executor::SourceRange::default(),
|
||||||
kittycad::types::ModelingCmd::ZoomToFit {
|
kittycad::types::ModelingCmd::ZoomToFit {
|
||||||
object_ids: Some(Default::default()),
|
object_ids: Default::default(),
|
||||||
padding: 0.1,
|
padding: 0.1,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
@ -39,7 +39,7 @@ mod test_examples_my_func {
|
|||||||
uuid::Uuid::new_v4(),
|
uuid::Uuid::new_v4(),
|
||||||
crate::executor::SourceRange::default(),
|
crate::executor::SourceRange::default(),
|
||||||
kittycad::types::ModelingCmd::ZoomToFit {
|
kittycad::types::ModelingCmd::ZoomToFit {
|
||||||
object_ids: Some(Default::default()),
|
object_ids: Default::default(),
|
||||||
padding: 0.1,
|
padding: 0.1,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
@ -116,7 +116,7 @@ mod test_examples_my_func {
|
|||||||
uuid::Uuid::new_v4(),
|
uuid::Uuid::new_v4(),
|
||||||
crate::executor::SourceRange::default(),
|
crate::executor::SourceRange::default(),
|
||||||
kittycad::types::ModelingCmd::ZoomToFit {
|
kittycad::types::ModelingCmd::ZoomToFit {
|
||||||
object_ids: Some(Default::default()),
|
object_ids: Default::default(),
|
||||||
padding: 0.1,
|
padding: 0.1,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
@ -40,7 +40,7 @@ mod test_examples_import {
|
|||||||
uuid::Uuid::new_v4(),
|
uuid::Uuid::new_v4(),
|
||||||
crate::executor::SourceRange::default(),
|
crate::executor::SourceRange::default(),
|
||||||
kittycad::types::ModelingCmd::ZoomToFit {
|
kittycad::types::ModelingCmd::ZoomToFit {
|
||||||
object_ids: Some(Default::default()),
|
object_ids: Default::default(),
|
||||||
padding: 0.1,
|
padding: 0.1,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
@ -118,7 +118,7 @@ mod test_examples_import {
|
|||||||
uuid::Uuid::new_v4(),
|
uuid::Uuid::new_v4(),
|
||||||
crate::executor::SourceRange::default(),
|
crate::executor::SourceRange::default(),
|
||||||
kittycad::types::ModelingCmd::ZoomToFit {
|
kittycad::types::ModelingCmd::ZoomToFit {
|
||||||
object_ids: Some(Default::default()),
|
object_ids: Default::default(),
|
||||||
padding: 0.1,
|
padding: 0.1,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
@ -39,7 +39,7 @@ mod test_examples_line_to {
|
|||||||
uuid::Uuid::new_v4(),
|
uuid::Uuid::new_v4(),
|
||||||
crate::executor::SourceRange::default(),
|
crate::executor::SourceRange::default(),
|
||||||
kittycad::types::ModelingCmd::ZoomToFit {
|
kittycad::types::ModelingCmd::ZoomToFit {
|
||||||
object_ids: Some(Default::default()),
|
object_ids: Default::default(),
|
||||||
padding: 0.1,
|
padding: 0.1,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
@ -116,7 +116,7 @@ mod test_examples_line_to {
|
|||||||
uuid::Uuid::new_v4(),
|
uuid::Uuid::new_v4(),
|
||||||
crate::executor::SourceRange::default(),
|
crate::executor::SourceRange::default(),
|
||||||
kittycad::types::ModelingCmd::ZoomToFit {
|
kittycad::types::ModelingCmd::ZoomToFit {
|
||||||
object_ids: Some(Default::default()),
|
object_ids: Default::default(),
|
||||||
padding: 0.1,
|
padding: 0.1,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
@ -38,7 +38,7 @@ mod test_examples_min {
|
|||||||
uuid::Uuid::new_v4(),
|
uuid::Uuid::new_v4(),
|
||||||
crate::executor::SourceRange::default(),
|
crate::executor::SourceRange::default(),
|
||||||
kittycad::types::ModelingCmd::ZoomToFit {
|
kittycad::types::ModelingCmd::ZoomToFit {
|
||||||
object_ids: Some(Default::default()),
|
object_ids: Default::default(),
|
||||||
padding: 0.1,
|
padding: 0.1,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
@ -115,7 +115,7 @@ mod test_examples_min {
|
|||||||
uuid::Uuid::new_v4(),
|
uuid::Uuid::new_v4(),
|
||||||
crate::executor::SourceRange::default(),
|
crate::executor::SourceRange::default(),
|
||||||
kittycad::types::ModelingCmd::ZoomToFit {
|
kittycad::types::ModelingCmd::ZoomToFit {
|
||||||
object_ids: Some(Default::default()),
|
object_ids: Default::default(),
|
||||||
padding: 0.1,
|
padding: 0.1,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
@ -38,7 +38,7 @@ mod test_examples_show {
|
|||||||
uuid::Uuid::new_v4(),
|
uuid::Uuid::new_v4(),
|
||||||
crate::executor::SourceRange::default(),
|
crate::executor::SourceRange::default(),
|
||||||
kittycad::types::ModelingCmd::ZoomToFit {
|
kittycad::types::ModelingCmd::ZoomToFit {
|
||||||
object_ids: Some(Default::default()),
|
object_ids: Default::default(),
|
||||||
padding: 0.1,
|
padding: 0.1,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
@ -38,7 +38,7 @@ mod test_examples_import {
|
|||||||
uuid::Uuid::new_v4(),
|
uuid::Uuid::new_v4(),
|
||||||
crate::executor::SourceRange::default(),
|
crate::executor::SourceRange::default(),
|
||||||
kittycad::types::ModelingCmd::ZoomToFit {
|
kittycad::types::ModelingCmd::ZoomToFit {
|
||||||
object_ids: Some(Default::default()),
|
object_ids: Default::default(),
|
||||||
padding: 0.1,
|
padding: 0.1,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
@ -38,7 +38,7 @@ mod test_examples_import {
|
|||||||
uuid::Uuid::new_v4(),
|
uuid::Uuid::new_v4(),
|
||||||
crate::executor::SourceRange::default(),
|
crate::executor::SourceRange::default(),
|
||||||
kittycad::types::ModelingCmd::ZoomToFit {
|
kittycad::types::ModelingCmd::ZoomToFit {
|
||||||
object_ids: Some(Default::default()),
|
object_ids: Default::default(),
|
||||||
padding: 0.1,
|
padding: 0.1,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
@ -38,7 +38,7 @@ mod test_examples_import {
|
|||||||
uuid::Uuid::new_v4(),
|
uuid::Uuid::new_v4(),
|
||||||
crate::executor::SourceRange::default(),
|
crate::executor::SourceRange::default(),
|
||||||
kittycad::types::ModelingCmd::ZoomToFit {
|
kittycad::types::ModelingCmd::ZoomToFit {
|
||||||
object_ids: Some(Default::default()),
|
object_ids: Default::default(),
|
||||||
padding: 0.1,
|
padding: 0.1,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
@ -38,7 +38,7 @@ mod test_examples_show {
|
|||||||
uuid::Uuid::new_v4(),
|
uuid::Uuid::new_v4(),
|
||||||
crate::executor::SourceRange::default(),
|
crate::executor::SourceRange::default(),
|
||||||
kittycad::types::ModelingCmd::ZoomToFit {
|
kittycad::types::ModelingCmd::ZoomToFit {
|
||||||
object_ids: Some(Default::default()),
|
object_ids: Default::default(),
|
||||||
padding: 0.1,
|
padding: 0.1,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "kcl-lib"
|
name = "kcl-lib"
|
||||||
description = "KittyCAD Language implementation and tools"
|
description = "KittyCAD Language implementation and tools"
|
||||||
version = "0.1.48"
|
version = "0.1.49"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
repository = "https://github.com/KittyCAD/modeling-app"
|
repository = "https://github.com/KittyCAD/modeling-app"
|
||||||
@ -19,7 +19,7 @@ chrono = "0.4.38"
|
|||||||
clap = { version = "4.5.4", features = ["cargo", "derive", "env", "unicode"], optional = true }
|
clap = { version = "4.5.4", features = ["cargo", "derive", "env", "unicode"], optional = true }
|
||||||
dashmap = "5.5.3"
|
dashmap = "5.5.3"
|
||||||
databake = { version = "0.1.7", features = ["derive"] }
|
databake = { version = "0.1.7", features = ["derive"] }
|
||||||
derive-docs = { version = "0.1.15", path = "../derive-docs" }
|
derive-docs = { version = "0.1.16", path = "../derive-docs" }
|
||||||
form_urlencoded = "1.2.1"
|
form_urlencoded = "1.2.1"
|
||||||
futures = { version = "0.3.30" }
|
futures = { version = "0.3.30" }
|
||||||
git_rev = "0.1.0"
|
git_rev = "0.1.0"
|
||||||
|
@ -124,7 +124,7 @@ pub trait EngineManager: std::fmt::Debug + Send + Sync + 'static {
|
|||||||
let batched_requests = WebSocketRequest::ModelingCmdBatchReq {
|
let batched_requests = WebSocketRequest::ModelingCmdBatchReq {
|
||||||
requests,
|
requests,
|
||||||
batch_id: uuid::Uuid::new_v4(),
|
batch_id: uuid::Uuid::new_v4(),
|
||||||
responses: Some(false),
|
responses: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
let final_req = if self.batch().lock().unwrap().len() == 1 {
|
let final_req = if self.batch().lock().unwrap().len() == 1 {
|
||||||
|
@ -1517,12 +1517,12 @@ async fn inner_bezier_curve(
|
|||||||
ModelingCmd::ExtendPath {
|
ModelingCmd::ExtendPath {
|
||||||
path: sketch_group.id,
|
path: sketch_group.id,
|
||||||
segment: kittycad::types::PathSegment::Bezier {
|
segment: kittycad::types::PathSegment::Bezier {
|
||||||
control1: Point3D {
|
control_1: Point3D {
|
||||||
x: data.control1[0],
|
x: data.control1[0],
|
||||||
y: data.control1[1],
|
y: data.control1[1],
|
||||||
z: 0.0,
|
z: 0.0,
|
||||||
},
|
},
|
||||||
control2: Point3D {
|
control_2: Point3D {
|
||||||
x: data.control2[0],
|
x: data.control2[0],
|
||||||
y: data.control2[1],
|
y: data.control2[1],
|
||||||
z: 0.0,
|
z: 0.0,
|
||||||
|
@ -48,7 +48,7 @@ async fn execute_and_snapshot(code: &str, units: kittycad::types::UnitLength) ->
|
|||||||
uuid::Uuid::new_v4(),
|
uuid::Uuid::new_v4(),
|
||||||
kcl_lib::executor::SourceRange::default(),
|
kcl_lib::executor::SourceRange::default(),
|
||||||
kittycad::types::ModelingCmd::ZoomToFit {
|
kittycad::types::ModelingCmd::ZoomToFit {
|
||||||
object_ids: Some(Default::default()),
|
object_ids: Default::default(),
|
||||||
padding: 0.1,
|
padding: 0.1,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user