# Module cargo_util_schemas::restricted_names

source ·
Expand description

Helpers for validating and checking names like package and crate names.

## Structs§

- NameValidationError
  Error validating names in Cargo.

## Enums§

- ErrorKind 🔒
  Non-public error kind for `NameValidationError`.

## Functions§

- sanitize_name 🔒
- sanitize_package_name 🔒
  Ensure a package name is valid
- validate_feature_name 🔒
- validate_name 🔒
- validate_package_name 🔒
- validate_path_base_name 🔒
- validate_profile_name 🔒
  Validate dir-names and profile names according to RFC 2678.
- validate_registry_name 🔒

## Type Aliases§

- Result 🔒