feat: add greet-rs

This commit is contained in:
2020-10-01 00:03:03 +08:00
parent 9f605830d2
commit ce1b7dd4fb
8 changed files with 72 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
use std::path::PathBuf;
fn main() {
let manifest_dir =
PathBuf::from(std::env::var_os("CARGO_MANIFEST_DIR").expect("manifest dir should be set"));
let lib_dir = manifest_dir
.parent()
.expect("manifest dir should have a parent");
println!("cargo:rustc-link-search={}", lib_dir.display());
}