cargo-lib

Strongly-typed Cargo instructions for your build script.

Usage

Add cargo-lib as a build dependency to be able to use it in your build.rs file: toml [build-dependencies] cargo-lib = "0.1"

Then in your build script: ```rust use cargo_lib as cl;

fn main() { cl::warning("Running the build script"); cl::rerunifenvchanged("CC"); // you can also use None for the second argument cl::rustclinksearch("/some/path", cl::SearchLibKind::Framework); cl::rustclinklib("MyFramework", cl::LibKind::Framework); cl::rustclink_lib("c++", None); } ```