diff --git a/crates/samples/components/json_validator_client/Cargo.toml b/crates/samples/components/json_validator_client/Cargo.toml index cf321c95da..ca6dbe9b69 100644 --- a/crates/samples/components/json_validator_client/Cargo.toml +++ b/crates/samples/components/json_validator_client/Cargo.toml @@ -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] diff --git a/crates/samples/components/json_validator_client/build.rs b/crates/samples/components/json_validator_client/build.rs index 7b2d8601e0..f00fa757d3 100644 --- a/crates/samples/components/json_validator_client/build.rs +++ b/crates/samples/components/json_validator_client/build.rs @@ -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)