pub fn discover(
root: &Path,
config: &DiscoveryConfig,
) -> Result<DiscoveryReport, DiscoveryError>Expand description
Discover the source units under root.
The tree is traversed once. Generated, binary and oversized files are
excluded and accounted for; the returned DiscoveryReport lists the
selected units in a deterministic order.
ยงErrors
Returns DiscoveryError if root cannot be resolved to a directory.