build libgreet.so direct build or use build.rs: RUSTFLAGS="-L ${PWD}/.." cargo build run: LD_LIBRARY_PATH="${PWD}/.." ./target/debug/greet-rs