From 3633b95f065c0ce057ad3866c671090656c85f7e Mon Sep 17 00:00:00 2001 From: Robert Queenin <2177841+ecalifornica@users.noreply.github.com> Date: Mon, 13 Apr 2026 11:22:55 -0400 Subject: [PATCH] feat: enable debug-embed on rust-embed for dev-mode builds rust-embed reads files from disk at runtime in debug builds and only embeds in release. `cargo build -p workshop --features embedded-ui` and fastbuild Bazel images both produce binaries that can't find the embedded paths at runtime. debug-embed forces embedding in every mode. --- MODULE.bazel | 1 + packages/workshop_ui/crate/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/MODULE.bazel b/MODULE.bazel index 4f50050..4c55933 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -354,6 +354,7 @@ crate_index.spec( # Embedded UI assets crate_index.spec( features = [ + "debug-embed", "interpolate-folder-path", "deterministic-timestamps", "include-exclude", diff --git a/packages/workshop_ui/crate/Cargo.toml b/packages/workshop_ui/crate/Cargo.toml index 2ba924c..206d2fc 100644 --- a/packages/workshop_ui/crate/Cargo.toml +++ b/packages/workshop_ui/crate/Cargo.toml @@ -4,4 +4,4 @@ version = "0.2.0" edition = "2024" [dependencies] -rust-embed = { version = "8", features = ["interpolate-folder-path", "deterministic-timestamps", "include-exclude"] } +rust-embed = { version = "8", features = ["debug-embed", "interpolate-folder-path", "deterministic-timestamps", "include-exclude"] }