Skip to main content

Module toml

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 πŸ”’

ConstantsΒ§

DEFAULT_README_FILES

StaticsΒ§

EXPECTED_LINT_CONFIG πŸ”’

TraitsΒ§

ResolveToPath

FunctionsΒ§

config_patch_to_dependency πŸ”’
Transforms a patch entry from Cargo config to a Dependency.
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 πŸ”’
emit_frontmatter_diagnostic πŸ”’
emit_toml_diagnostic πŸ”’
field_inherit_with πŸ”’
gather_dependencies πŸ”’
inheritable_from_path πŸ”’
inner_dependency_inherit_with πŸ”’
is_embedded
See also bin/cargo/commands/run.rss is_manifest_command
lints_inherit_with πŸ”’
lints_to_rustflags πŸ”’
load_inheritable_fields πŸ”’
lookup_path_base πŸ”’
make_document_owned πŸ”’
Transform the parsed TOML document so that all its values are owned, so that it has a ’static lifetime, to make it easier to work with it.
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_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 syntax 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 πŸ”’