Skip to content

Commit

Permalink
Update to embed-resource 3.0 (fixes build below windows \?\ path) (ze…
Browse files Browse the repository at this point in the history
…d-industries#21288)

Accd'g to
zed-industries#9009 (comment)
the manifest is required

Followup for
nabijaczleweli/rust-embed-resource#71

Release Notes:
- N/A
  • Loading branch information
nabijaczleweli authored and JaLnYn committed Nov 29, 2024
1 parent 2bb4870 commit f2f814e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/gpui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ http_client = { workspace = true, features = ["test-support"] }
unicode-segmentation.workspace = true

[build-dependencies]
embed-resource = "2.4"
embed-resource = "3.0"

[target.'cfg(target_os = "macos")'.build-dependencies]
bindgen = "0.70.0"
Expand Down
4 changes: 3 additions & 1 deletion crates/gpui/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ fn main() {
let rc_file = std::path::Path::new("resources/windows/gpui.rc");
println!("cargo:rerun-if-changed={}", manifest.display());
println!("cargo:rerun-if-changed={}", rc_file.display());
embed_resource::compile(rc_file, embed_resource::NONE);
embed_resource::compile(rc_file, embed_resource::NONE)
.manifest_required()
.unwrap();
}
_ => (),
};
Expand Down

0 comments on commit f2f814e

Please sign in to comment.