Skip to content

Commit

Permalink
windows-targets
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed May 17, 2024
1 parent 0f46dec commit 99c17d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions crates/samples/components/json_validator_client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ publish = false
[build-dependencies]
cc = "1.0"

[dependencies.windows-targets]
path = "../../../../crates/libs/targets"

# TODO: this causes a warning about lack of linkage target. The point is to ensure that this binary dependency is built first but
# Cargo doesn't respect cdylib targets. https://github.com/rust-lang/cargo/issues/7825
[dependencies.sample_component_json_validator]
Expand Down
2 changes: 1 addition & 1 deletion crates/samples/components/json_validator_client/build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
fn main() {
println!("cargo:rerun-if-changed=src/client.cpp");
println!("cargo:rustc-link-lib=ole32");
println!("cargo:rustc-link-lib=windows.0.52.0");

cc::Build::new()
.cpp(true)
Expand Down

0 comments on commit 99c17d4

Please sign in to comment.