Skip to content

Commit 03bd066

Browse files
committed
Fix path escaping on Windows
1 parent 4dbd306 commit 03bd066

File tree

1 file changed

+3
-2
lines changed
  • crates/subspace-wasm-tools/src

1 file changed

+3
-2
lines changed

crates/subspace-wasm-tools/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ pub fn create_runtime_bundle_inclusion_file(
2828
env::var("OUT_DIR").expect("Set by cargo; qed") + "/" + target_file_name;
2929
let execution_wasm_bundle_rs_contents = format!(
3030
r#"
31-
pub const {bundle_const_name}: &[u8] = include_bytes!("{execution_wasm_bundle_path}");
32-
"#
31+
pub const {bundle_const_name}: &[u8] = include_bytes!("{}");
32+
"#,
33+
execution_wasm_bundle_path.escape_default()
3334
);
3435

3536
fs::write(

0 commit comments

Comments
 (0)