Expand description
This module implements Cargo conventions for directory layout:
src/lib.rs
is a librarysrc/main.rs
is a binarysrc/bin/*.rs
are binariesexamples/*.rs
are examplestests/*.rs
are integration testsbenches/*.rs
are benchmarks
It is a bit tricky because we need match explicit information from Cargo.toml
with implicit info in directory layout.
Constantsยง
Functionsยง
- are_
normalized ๐ - are_
normalized_ ๐ - configure ๐
- infer_
any ๐ - infer_
file ๐ - infer_
from_ ๐directory - infer_
subdirectory ๐ - inferred_
bins ๐ - inferred_
lib ๐ - is_
normalized ๐ - is_
not_ ๐dotfile - legacy_
bin_ ๐path - name_
or_ ๐panic - Returns the path to the build script if one exists for this crate.
- normalize_
targets ๐ - target_
path ๐ - Build an error message for a target path that cannot be determined either by auto-discovery or specifying.
- to_
bench_ ๐targets - to_
bin_ ๐targets - to_
example_ ๐targets - to_
lib_ ๐target - to_
targets ๐ - to_
test_ ๐targets - validate_
bin_ ๐name - validate_
crate_ ๐types - validate_
lib_ ๐name - validate_
proc_ ๐macro - validate_
target_ ๐name - Will check a list of toml targets, and make sure the target names are unique within a vector.