Skip to content

Commit cb53400

Browse files
committed
Fixed the build error, and updated tests.
The `typedesc_*_basetype` and `typedesc_is_*` functions are failing because the basetype gets corrupted on the C++ side, so the tests will likely fail. Signed-off-by: Scott Wilson <[email protected]>
1 parent 9109350 commit cb53400

File tree

3 files changed

+433
-18
lines changed

3 files changed

+433
-18
lines changed

src/rust/oiio-sys/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ links = "OpenImageIO"
2020
cxx = { workspace = true }
2121

2222
[build-dependencies]
23-
anyhow = "1.0.97"
24-
cxx-build = "1.0.140"
25-
pkg-config = "0.3.31"
23+
anyhow = "1.0.98"
24+
cxx-build = "1.0.158"
25+
pkg-config = "0.3.32"
2626

2727
[dev-dependencies]
2828
proptest = "1.6.0"

src/rust/oiio-sys/build.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,13 @@ fn main() -> Result<()> {
3030
println!("cargo:rerun-if-changed=include/{}.h", name);
3131
}
3232

33+
for link_path in pkgconfig.link_paths {
34+
println!("cargo:rustc-link-search=native={}", link_path.display());
35+
}
36+
37+
for lib in pkgconfig.libs {
38+
println!("cargo:rustc-link-lib={}", lib);
39+
}
40+
3341
Ok(())
3442
}

0 commit comments

Comments
 (0)