Module embuild::cargo

source ·
Expand description

Utils for interacting with cargo.

Structs

A logical cargo crate that may or may not exist with its directory path.

Enums

Which part of the rust standard library should be built.
Which cargo command to execute and whether the standard library should be built locally.

Traits

Extension trait for turning Displayable values into cargo warnings.

Functions

Add an argument that cargo passes to the linker invocation for this package.
While in a cargo build script, get the out directory of that crate.
Display a warning on the terminal.
Set metadata that gets passed to all dependent’s build scripts.
Set a cfg key value pair for this package wich may be used for conditional compilation.
Set an environment variable that is available during this packages compilation.
Rerun this build script if the environment variable has changed.
Rerun this build script if the file or directory has changed.
Try to get the path to crate workspace dir or None if unavailable.