forked from 1b-agent/opencadstudio-upstream
Update codec and kernel dependencies
This commit is contained in:
1 parent
e86c045988
commit
5e91e23752
8 files changed
+29
-27
No files matched your search
Generated
+4
-4
@@ -78,8 +78,8 @@ checksum = "366ffbaa4442f4684d91e2cd7c5ea7c4ed8add41959a31447066e279e432b618"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "acadrust"
|
name = "acadrust"
|
||||||
version = "0.5.4"
|
version = "0.5.5"
|
||||||
source = "git+https://github.com/HakanSeven12/cadcodec.git?rev=f30dcc84ebfc3f48bdc1eb888d6b8eda65c3e6f4#f30dcc84ebfc3f48bdc1eb888d6b8eda65c3e6f4"
|
source = "git+https://github.com/HakanSeven12/cadcodec.git?rev=6d88d702b664685fead738095d778cf6e5a36119#6d88d702b664685fead738095d778cf6e5a36119"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ahash 0.8.12",
|
"ahash 0.8.12",
|
||||||
"anyhow",
|
"anyhow",
|
||||||
@@ -894,7 +894,7 @@ checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "cadkernel"
|
name = "cadkernel"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/HakanSeven12/cadkernel.git?rev=7c5048ba179e861288a6d1f6a50da6b5b9147838#7c5048ba179e861288a6d1f6a50da6b5b9147838"
|
source = "git+https://github.com/HakanSeven12/cadkernel.git?rev=0442518e7df3d07bea3ccc8e91aabe648613be86#0442518e7df3d07bea3ccc8e91aabe648613be86"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"acadrust",
|
"acadrust",
|
||||||
"cavalier_contours",
|
"cavalier_contours",
|
||||||
@@ -905,7 +905,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "cadkernel-constraints"
|
name = "cadkernel-constraints"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/HakanSeven12/cadkernel.git?rev=7c5048ba179e861288a6d1f6a50da6b5b9147838#7c5048ba179e861288a6d1f6a50da6b5b9147838"
|
source = "git+https://github.com/HakanSeven12/cadkernel.git?rev=0442518e7df3d07bea3ccc8e91aabe648613be86#0442518e7df3d07bea3ccc8e91aabe648613be86"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"nalgebra",
|
"nalgebra",
|
||||||
]
|
]
|
||||||
|
|||||||
+3
-3
@@ -30,9 +30,9 @@ glam = { version = "0.33", features = ["bytemuck"] }
|
|||||||
rfd = "0.17"
|
rfd = "0.17"
|
||||||
clap = { version = "4", features = ["derive", "string"] }
|
clap = { version = "4", features = ["derive", "string"] }
|
||||||
env_logger = "0.11"
|
env_logger = "0.11"
|
||||||
acadrust = { git = "https://github.com/HakanSeven12/cadcodec.git", rev = "f30dcc84ebfc3f48bdc1eb888d6b8eda65c3e6f4", features = ["serde"] }
|
acadrust = { git = "https://github.com/HakanSeven12/cadcodec.git", rev = "6d88d702b664685fead738095d778cf6e5a36119", features = ["serde"] }
|
||||||
cadkernel = { git = "https://github.com/HakanSeven12/cadkernel.git", rev = "7c5048ba179e861288a6d1f6a50da6b5b9147838", features = ["acis", "offset"] }
|
cadkernel = { git = "https://github.com/HakanSeven12/cadkernel.git", rev = "0442518e7df3d07bea3ccc8e91aabe648613be86", features = ["acis", "offset"] }
|
||||||
cadkernel-constraints = { git = "https://github.com/HakanSeven12/cadkernel.git", rev = "7c5048ba179e861288a6d1f6a50da6b5b9147838" }
|
cadkernel-constraints = { git = "https://github.com/HakanSeven12/cadkernel.git", rev = "0442518e7df3d07bea3ccc8e91aabe648613be86" }
|
||||||
dwg-thumbnailer = { path = "crates/dwg-thumbnailer" }
|
dwg-thumbnailer = { path = "crates/dwg-thumbnailer" }
|
||||||
flate2 = "1"
|
flate2 = "1"
|
||||||
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "bmp", "tiff"] }
|
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "bmp", "tiff"] }
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ serde = { version = "1", features = ["derive"] }
|
|||||||
# Pulled in only by the `host` feature, which adds the `acadrust`-typed
|
# Pulled in only by the `host` feature, which adds the `acadrust`-typed
|
||||||
# `HostApi` runtime surface. The default crate stays dependency-free so engine
|
# `HostApi` runtime surface. The default crate stays dependency-free so engine
|
||||||
# crates and external tooling can depend on the manifest/ribbon contract cheaply.
|
# crates and external tooling can depend on the manifest/ribbon contract cheaply.
|
||||||
acadrust = { git = "https://github.com/HakanSeven12/cadcodec.git", rev = "f30dcc84ebfc3f48bdc1eb888d6b8eda65c3e6f4", optional = true, features = ["serde"] }
|
acadrust = { git = "https://github.com/HakanSeven12/cadcodec.git", rev = "6d88d702b664685fead738095d778cf6e5a36119", optional = true, features = ["serde"] }
|
||||||
|
|
||||||
# Runtime IPC and serialization (host feature only).
|
# Runtime IPC and serialization (host feature only).
|
||||||
interprocess = { version = "2", optional = true }
|
interprocess = { version = "2", optional = true }
|
||||||
@@ -38,7 +38,7 @@ serde_json = "1"
|
|||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
cargo-lock = "11"
|
cargo-lock = "11"
|
||||||
# acadrust is scanned at build time to generate the embedded type registry.
|
# acadrust is scanned at build time to generate the embedded type registry.
|
||||||
acadrust = { git = "https://github.com/HakanSeven12/cadcodec.git", rev = "f30dcc84ebfc3f48bdc1eb888d6b8eda65c3e6f4", features = ["serde"] }
|
acadrust = { git = "https://github.com/HakanSeven12/cadcodec.git", rev = "6d88d702b664685fead738095d778cf6e5a36119", features = ["serde"] }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
@@ -8,7 +8,7 @@ publish = false
|
|||||||
crate-type = ["cdylib"]
|
crate-type = ["cdylib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
acadrust = { git = "https://github.com/HakanSeven12/cadcodec.git", rev = "f30dcc84ebfc3f48bdc1eb888d6b8eda65c3e6f4", features = ["serde"] }
|
acadrust = { git = "https://github.com/HakanSeven12/cadcodec.git", rev = "6d88d702b664685fead738095d778cf6e5a36119", features = ["serde"] }
|
||||||
bincode = "1.3"
|
bincode = "1.3"
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
console_error_panic_hook = "0.1"
|
console_error_panic_hook = "0.1"
|
||||||
|
|||||||
@@ -10,4 +10,4 @@ crate-type = ["cdylib"]
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ocs_plugin_api = { path = "../ocs_plugin_api", features = ["host"] }
|
ocs_plugin_api = { path = "../ocs_plugin_api", features = ["host"] }
|
||||||
acadrust = { git = "https://github.com/HakanSeven12/cadcodec.git", rev = "f30dcc84ebfc3f48bdc1eb888d6b8eda65c3e6f4", features = ["serde"] }
|
acadrust = { git = "https://github.com/HakanSeven12/cadcodec.git", rev = "6d88d702b664685fead738095d778cf6e5a36119", features = ["serde"] }
|
||||||
@@ -5,9 +5,11 @@ edition = "2021"
|
|||||||
description = "Example OpenCAD Studio plugin demonstrating the shared-memory DocumentReader API."
|
description = "Example OpenCAD Studio plugin demonstrating the shared-memory DocumentReader API."
|
||||||
license = "GPL-3.0-only"
|
license = "GPL-3.0-only"
|
||||||
|
|
||||||
|
[workspace]
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
crate-type = ["cdylib"]
|
crate-type = ["cdylib"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ocs_plugin_api = { path = "../../crates/ocs_plugin_api", features = ["host"] }
|
ocs_plugin_api = { path = "../../crates/ocs_plugin_api", features = ["host"] }
|
||||||
acadrust = "0.3.4"
|
acadrust = { git = "https://github.com/HakanSeven12/cadcodec.git", rev = "6d88d702b664685fead738095d778cf6e5a36119" }
|
||||||
@@ -5,6 +5,8 @@ edition = "2021"
|
|||||||
description = "An Open CAD Studio add-on."
|
description = "An Open CAD Studio add-on."
|
||||||
license = "GPL-3.0-only"
|
license = "GPL-3.0-only"
|
||||||
|
|
||||||
|
[workspace]
|
||||||
|
|
||||||
# A plugin is a C-ABI dynamic library the host loads at runtime.
|
# A plugin is a C-ABI dynamic library the host loads at runtime.
|
||||||
[lib]
|
[lib]
|
||||||
crate-type = ["cdylib"]
|
crate-type = ["cdylib"]
|
||||||
@@ -12,8 +14,3 @@ crate-type = ["cdylib"]
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
# The stable contract, with the runtime `host` surface (HostApi / BuiltinPlugin).
|
# The stable contract, with the runtime `host` surface (HostApi / BuiltinPlugin).
|
||||||
ocs_plugin_api = { git = "https://github.com/HakanSeven12/OpenCADStudio", features = ["host"] }
|
ocs_plugin_api = { git = "https://github.com/HakanSeven12/OpenCADStudio", features = ["host"] }
|
||||||
|
|
||||||
# Match the host's acadrust so the loaded library is binary-compatible
|
|
||||||
# (approach B assumes the same toolchain + dependency versions).
|
|
||||||
[patch.crates-io]
|
|
||||||
acadrust = { git = "https://github.com/HakanSeven12/acadrust", branch = "main" }
|
|
||||||
@@ -30,16 +30,19 @@ impl CadModule for MyModule {
|
|||||||
fn title(&self) -> &'static str {
|
fn title(&self) -> &'static str {
|
||||||
"My Plugin"
|
"My Plugin"
|
||||||
}
|
}
|
||||||
fn ribbon_groups(&self) -> Vec<RibbonGroup> {
|
fn ribbon_groups(&self) -> &[RibbonGroup] {
|
||||||
vec![RibbonGroup {
|
static GROUPS: std::sync::OnceLock<Vec<RibbonGroup>> = std::sync::OnceLock::new();
|
||||||
title: "Tools",
|
GROUPS.get_or_init(|| {
|
||||||
tools: vec![RibbonItem::LargeTool(ToolDef {
|
vec![RibbonGroup {
|
||||||
id: "MP_HELLO",
|
title: "Tools",
|
||||||
label: "Hello",
|
tools: vec![RibbonItem::LargeTool(ToolDef {
|
||||||
icon: IconKind::Glyph("★"),
|
id: "MP_HELLO",
|
||||||
event: ModuleEvent::Command("MP_HELLO".to_string()),
|
label: "Hello",
|
||||||
})],
|
icon: IconKind::Glyph("★"),
|
||||||
}]
|
event: ModuleEvent::Command("MP_HELLO".to_string()),
|
||||||
|
})],
|
||||||
|
}]
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user