fn main() { // https://doc.rust-lang.org/cargo/reference/build-scripts.html // cargo-equivalent to running rustc -L./raylib/ -lraylib test.rs -o bin/test // to link against the libraylib.a static library println!("cargo:rustc-link-search=./raylib"); println!("cargo:rustc-link-lib=static=raylib"); }