cargo::util

# Module toml

Source

## Modules§

- embedded 🔒
- targets 🔒
  This module implements Cargo conventions for directory layout:

## Macros§

- package_field_getter 🔒
  Defines simple getter methods for inheritable fields.

## Structs§

- InheritableFields
  A group of fields that are inheritable by members of the workspace
- ManifestContext 🔒
- ScriptSource

## Constants§

- DEFAULT_README_FILES 🔒

## Traits§

- ResolveToPath

## Functions§

- default_readme_from_package_root 🔒
  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.
- dep_to_dependency 🔒
- dependency_inherit_with 🔒
- deprecated_underscore 🔒
  Warn about paths that have been deprecated and may conflict.
- deprecated_ws_default_features 🔒
- deserialize_toml 🔒
- detailed_dep_to_dependency 🔒
- emit_diagnostic 🔒
- field_inherit_with 🔒
- gather_dependencies 🔒
- inheritable_from_path 🔒
- inner_dependency_inherit_with 🔒
- is_embedded
  See also `bin/cargo/commands/run.rs`s `is_manifest_command`
- lints_inherit_with 🔒
- lints_to_rustflags 🔒
- load_inheritable_fields 🔒
- lookup_path_base 🔒
- missing_dep_diagnostic 🔒
- normalize_dependencies 🔒
- normalize_features 🔒
- normalize_package_readme 🔒
  Returns the name of the README file for a `manifest::TomlPackage`.
- normalize_package_toml 🔒
- normalize_patch 🔒
- normalize_path_dependency 🔒
- normalize_path_sep 🔒
- normalize_path_string_sep
- normalize_toml 🔒
  See `Manifest::normalized_toml` for more details
- parse_document 🔒
- patch 🔒
- prepare_for_publish
  Make the `Package` self-contained so its ready for packaging
- prepare_target_for_publish
- prepare_targets_for_publish
- prepare_toml_for_publish 🔒
  Prepares the manifest for publishing.
- read_manifest
  Loads a `Cargo.toml` from a file on disk.
- read_toml_string 🔒
- replace 🔒
- stringify 🔒
- to_dependency 🔒
- to_dependency_source_id 🔒
- to_real_manifest
- to_virtual_manifest 🔒
- to_workspace_config 🔒
- to_workspace_root_config 🔒
- unique_build_targets 🔒
  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.
- unused_dep_keys 🔒
- validate_dependencies 🔒
- validate_profile
  Checks stytax validity and unstable feature gate for a given profile.
- validate_profile_layer 🔒
  Validates a profile.
- validate_profile_override 🔒
  Validation that is specific to an override.
- validate_profiles 🔒
  Checks syntax validity and unstable feature gate for each profile.
- verify_lints 🔒
- warn_for_cargo_lint_feature 🔒
- warn_on_unused 🔒