Crate crit

Crate crit 

Source
Expand description

crit provides predicates for conveniently managing multiple cross target builds.

Structs§

Crit
Crit models a multiplatform build operation.

Enums§

CritError
CritError models bad computer states.

Statics§

ARTIFACT_ROOT_PATH
ARTIFACT_ROOT_PATH denotes the path housing crit internal files.
BINARY_FILE_EXTENSIONS
BINARY_FILE_EXTENSIONS collects potential cargo build binary file extensions.
BUILD_MODES
BUILD_MODES enumerates cargo’s major build modes.
CONFIGURATION_FILENAME
CONFIGURATION_FILENAME denotes the file path to an optional TOML configuration file, relative to the current working directory.
CRATE_FEATURE_EXCLUSIONS
CRATE_FEATURE_EXCLUSIONS collects development applications generally not intended for release.
CRIT_ARTIFACT_ROOT
CRIT_ARTIFACT_ROOT denotes the directory housing crit internal files.
CROSS_DIR_PATHBUF
CROSS_DIR_PATHBUF denotes the pathbuf housing cross internal files.
DEFAULT_FEATURE_EXCLUSION_PATTERN
DEFAULT_FEATURE_EXCLUSION_PATTERN matches problematic binary features, such as internal development programs.
DEFAULT_TARGET_EXCLUSION_PATTERN
DEFAULT_TARGET_EXCLUSION_PATTERN matches problematic target triples, such as bare metal targets that may lack support for the std package, or targets without community supported cross images.
EXCLUSION_FEATURES_PATTERN_REPLACE_TEMPLATE
EXCLUSION_FEATURES_PATTERN_REPLACE_TEMPLATE combines exclusion_features and a pipe (|) delimited feature string to form a pattern matching skippable features.
EXCLUSION_TARGETS_PATTERN_REPLACE_TEMPLATE
EXCLUSION_TARGETS_PATTERN_REPLACE_TEMPLATE combines exclusion_targets and a pipe (|) delimited target string to form a pattern matching skippable targets.
FRINGE_TARGETS
FRINGE_TARGETS collects Rust platform entries likely to not work out of the box.
RUSTUP_TARGET_PATTERN
RUSTUP_TARGET_PATTERN matches Rust target triples from rustup target list output.

Functions§

clean
clean removes:
clean_artifact_root
clean_artifact_root removes CRIT_ARTIFACT_ROOT directory.
clean_containers
clean_containers removes leftover cross Docker containers.
format_targets
format_targets renders a target table.
generate_feature_exclusion_pattern
generate_feature_exclusion_pattern builds a feature matching pattern from a collection of features.
generate_target_exclusion_pattern
generate_target_exclusion_pattern builds a target matching pattern from a collection of targets.
get_applications
get_applications queries Cargo.toml for the list of binary application names.