Module e_collect

Source

Functions§

collect_all_targets
collect_all_targets_silent
Same as collect_all_targets but does not print workspace/package debug info.
collect_binaries
Runs cargo run --bin (without specifying a binary name) so that Cargo prints an error with a list of available binary targets. Then parses that list to return a vector of Example instances, using the provided prefix.
collect_examples
Runs cargo run --example so that Cargo lists available examples, then parses the stderr output to return a vector of Example instances.
collect_samples
dedup_single_file_over_default_binary
Deduplicates targets by their canonicalized origin, gives priority to toml_specified, and ensures single-file targets override default binaries when appropriate.
path_depth
Returns the “depth” of a path (number of components)