Module e_discovery

Source

Functions§

determine_target_kind_and_manifest
Determines the target kind and (optionally) an updated manifest path based on:
is_extended_target
Determines the target kind based on the manifest path and file contents. Returns Some(kind) if one of the conditions is met, or None if the file doesn’t appear runnable. Returns true if the candidate file is not located directly in the project root.
scan_examples_directory
scan_tests_directory
Discover targets in the given directory. This function scans for a Cargo.toml and then looks for example files or subproject directories.