Add build.rs to explicitly link libgit2/libssh2
- SHA
2964d262678b2af7eb26f77ab0c3450ac7d7405c- Parents
-
f380dc0 - Tree
6d1109c
2964d26
2964d262678b2af7eb26f77ab0c3450ac7d7405cf380dc0
6d1109c| Status | File | + | - |
|---|---|---|---|
| M |
Cargo.toml
|
1 | 1 |
| A |
build.rs
|
7 | 0 |
Cargo.tomlmodified@@ -1,6 +1,6 @@ | ||
| 1 | 1 | [package] |
| 2 | 2 | name = "fussr" |
| 3 | -version = "0.2.10" | |
| 3 | +version = "0.2.11" | |
| 4 | 4 | edition = "2021" |
| 5 | 5 | description = "A git staging TUI tool - Rust port of fuss" |
| 6 | 6 | 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 | +} | |