Module cargo::util::toml::targets

source ·
Expand description

This module implements Cargo conventions for directory layout:

  • src/lib.rs is a library
  • src/main.rs is a binary
  • src/bin/*.rs are binaries
  • examples/*.rs are examples
  • tests/*.rs are integration tests
  • benches/*.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

clean_bins 🔒
clean_lib 🔒
configure 🔒
infer_any 🔒
infer_file 🔒
Build an error message for a target path that cannot be determined either by auto-discovery or specifying.
Will check a list of toml targets, and make sure the target names are unique within a vector.