Crate re_build_tools
source ·Expand description
This crate is to be used from build.rs build scripts.
Enums
- Where is this
build.rsbuild script running?
Functions
- Given a crate name, computes the sha256 hash of its source code (ordered by filename) and returns an hexadecimal string for it.
- Given a directory path, computes the sha256 hash of the accumulated contents of all of its files (ordered by filename) except those failing a a custom filter, and returns an hexadecimal string for it.
- Given a directory path, computes the sha256 hash of the accumulated contents of all of its files (ordered by filename), and returns an hexadecimal string for it.
- Given a file path, computes the sha256 hash of its contents and returns an hexadecimal string for it.
- Given a bunch of strings, computes the sha256 hash of their contents (in the order they were passed in) and returns an hexadecimal string for it.
- Call from the
build.rsfile of any crate you want to generate build info for. - Read the environment variable and trigger a rebuild whenever the environment variable changes.
- Are we running on a CI machine?
- Read the environment variable and trigger a rebuild whenever the environment variable changes.
- Recursively walks the directory at
pathin filename order. - Reads back a versioning hash that was written with
write_versioning_hash. - Call from
build.rsto trigger a rebuild whenever any source file of the given package or any of its dependencies changes, recursively. - Call from
build.rsto trigger a rebuild whenever the file atpathchanges. - Call from
build.rsto trigger a rebuild whenever any of the files identified by the given globbedpathchange. - Call from
build.rsto trigger a rebuild whenever the file atpathchanges, or it doesn’t exist. - Change whether or not this library should output cargo build instructions
- Writes
contentto a file iff it differs from what’s already there. - Writes the given
hashat the specifiedpath.