tenseleyflow/fussr / 2964d26

Browse files

Add build.rs to explicitly link libgit2/libssh2

Authored by espadonne
SHA
2964d262678b2af7eb26f77ab0c3450ac7d7405c
Parents
f380dc0
Tree
6d1109c

2 changed files

StatusFile+-
M Cargo.toml 1 1
A build.rs 7 0
Cargo.tomlmodified
@@ -1,6 +1,6 @@
11
 [package]
22
 name = "fussr"
3
-version = "0.2.10"
3
+version = "0.2.11"
44
 edition = "2021"
55
 description = "A git staging TUI tool - Rust port of fuss"
66
 authors = ["Matthew Wolffe"]
build.rsadded
@@ -0,0 +1,7 @@
1
+fn main() {
2
+    // Explicitly link against libgit2 and libssh2
3
+    // This works around issues where the -sys crates' build.rs output
4
+    // isn't being properly processed by cargo
5
+    println!("cargo:rustc-link-lib=git2");
6
+    println!("cargo:rustc-link-lib=ssh2");
7
+}