cargo::util::toml

Module 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ยง