Module build_script::basic[][src]

The most basic usage for build_script.

Notes

99% of the time, all of the public functions in this crate can suffice.

Functions

cargo_mapping

Wrapper for cargo:KEY=VALUE. This is metadata, used by links scripts.

cargo_rerun_if_changed

Wrapper for cargo:rerun-if-changed=PATH. This tells Cargo when to rerun the script.

cargo_rerun_if_env_changed

Wrapper for cargo:rerun-if-env-changed=VAR. This tells Cargo when to rerun the script.

cargo_rustc_cdylib_link_arg

Wrapper for cargo:rustc-cdylib-link-arg=FLAG. This passes custom flags to a linker for cdylib crates.

cargo_rustc_cfg

Wrapper for cargo:rustc-cfg=KEY[="VALUE"]. This enable compile-time cfg settings.

cargo_rustc_cfg_mapping

cargo_rustc_cfg(), but with the value parameter needed.

cargo_rustc_env

Wrapper for cargo:rustc-env=VAR=VALUE. This sets an environment variable.

cargo_rustc_flags

Wrapper for cargo:rustc-flags=FLAGS. This passes certain flags to the compiler.

cargo_rustc_link_lib

Wrapper for cargo:rustc-link-lib=[KIND=]NAME. This adds a library to link.

cargo_rustc_link_lib_mapping

cargo_rustc_link_lib(), but with the kind parameter needed.

cargo_rustc_link_search

Wrapper for cargo:rustc-link-search=[KIND=]PATH. This adds to the library search path.

cargo_rustc_link_search_mapping

cargo_rustc_link_search(), but with the kind parameter needed.

cargo_warning

Wrapper for cargo:warning=MESSAGE. This displays a warning on the terminal.