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ยง
- configure ๐
- infer_any ๐
- infer_file ๐
- infer_from_directory ๐
- infer_subdirectory ๐
- inferred_bins ๐
- inferred_lib ๐
- is_not_dotfile ๐
- is_resolved ๐
- legacy_bin_path ๐
- name_or_panic ๐
- Returns the path to the build script if one exists for this crate.
- resolve_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.