We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be35790 commit 4fa1b33Copy full SHA for 4fa1b33
1 file changed
README.md
@@ -23,11 +23,22 @@ cd insightface/cpp-package/inspireface && bash command/build.sh
23
INSIGHTFACE_PATH = "<path to>/insightface/cpp-package/inspireface/build/inspireface-<arch>/InspireFace"
24
```
25
26
+Then you can link the library using the `build.rs` example below:
27
+
28
+```rs
29
+fn main() {
30
+ if let Ok(path) = std::env::var("INSIGHTFACE_PATH") {
31
+ let lib_path = format!("{}/lib", path);
32
+ println!("cargo:rustc-link-arg=-Wl,-rpath,{}", lib_path);
33
+ }
34
+}
35
+```
36
37
Thereafter the library can be add as follows in your `Cargo.toml`:
38
39
```toml
40
[dependencies]
-baklava = "0.1.0"
41
+baklava = "0.1.4"
42
43
44
Below is a simple example of how to use the library:
0 commit comments