Name the C library differently from the crate

This commit is contained in:
Dustin J. Mitchell 2022-04-24 22:48:48 +00:00
parent 716a558ba2
commit ac172b1008
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ fn link_libtaskchampion() {
let libtc_dir = libtc_dir.to_str().expect("path is valid utf-8"); let libtc_dir = libtc_dir.to_str().expect("path is valid utf-8");
println!("cargo:rustc-link-search={}", libtc_dir); println!("cargo:rustc-link-search={}", libtc_dir);
println!("cargo:rustc-link-lib=dylib=taskchampion"); println!("cargo:rustc-link-lib=dylib=taskchampionlib");
// on windows, it appears that rust std requires BCrypt // on windows, it appears that rust std requires BCrypt
if cfg!(target_os = "windows") { if cfg!(target_os = "windows") {

View file

@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2018" edition = "2018"
[lib] [lib]
name = "taskchampion" name = "taskchampionlib"
crate-type = ["staticlib", "cdylib", "rlib"] crate-type = ["staticlib", "cdylib", "rlib"]
[dependencies] [dependencies]