rework lib

This commit is contained in:
2025-11-14 22:18:15 +01:00
parent 77d5454629
commit 5613696b89
5 changed files with 852 additions and 287 deletions
+4 -1
View File
@@ -2,4 +2,7 @@
name = "open_wrapper"
version = "0.1.0"
edition.workspace = true
build = "build.rs"
[dependencies]
libloading = "0.9.0"
-20
View File
@@ -1,20 +0,0 @@
use std::{env, path::PathBuf};
fn main() {
let manifest_dir =
PathBuf::from(env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR must be set"));
let lib_dir = manifest_dir.join("lib");
println!("cargo:rustc-link-search=native={}", lib_dir.display());
println!("cargo:rerun-if-changed=build.rs");
let open_lib = lib_dir.join("open.lib");
if open_lib.exists() {
println!("cargo:rerun-if-changed={}", open_lib.display());
} else {
println!(
"cargo:warning=Expected to find open.lib in '{}'. Copy the vendor import library there.",
lib_dir.display()
);
}
}
+803 -168
View File
File diff suppressed because it is too large Load Diff