Modules
targets 🔒
This module implements Cargo conventions for directory layout:
Structs
Context 🔒
A group of fields that are inheritable by members of the workspace
A StringOrVec can be parsed from either a TOML string or array,
but is always stored as a vector.
Errors that can occur when deserializing a type.
Type representing a TOML parse error
This type is used to deserialize
Cargo.toml
files.Represents the
package
/project
sections of a Cargo.toml
.Corresponds to a
target
entry, but TomlTarget
is already used.Enums
Enum that allows for the parsing of
field.workspace = true
in a Cargo.tomlConstants
Traits
Functions
Checks if a file with any of the default README file names exists in the package root.
If so, returns a
String
representing that name.Attempts to parse a string into a [
toml::Value
]. This is not specific to any
particular kind of TOML file.Loads a
Cargo.toml
from a file on disk.Parse an already-loaded
Cargo.toml
as a Cargo manifest.Returns the name of the README file for a
TomlPackage
.Checks a list of build targets, and ensures the target names are unique within a vector.
If not, the name of the offending build target is returned.
Warn about paths that have been deprecated and may conflict.