Skip to main content

Module prelude

Module prelude 

Source
Expand description

Commonly used RustUse Rust ecosystem primitives.

Structs§

CrateMetadata
Lightweight crate metadata for RustUse validation.
CrateName
A validated crate name.
DocumentationUrl
A documentation URL.
RepositoryUrl
A repository URL.
Version
A typed semantic version value.

Enums§

PublishStatus
The publish status inferred from manifest metadata.
ReleaseLevel
The release level represented by a version transition.
VersionBump
The kind of version bump to apply.
VersionPolicy
A simple version policy marker for RustUse release flows.

Functions§

compare_versions
Compares two semantic versions.
crate_name_to_module_name
Converts a crate name like use-release into a Rust module name.
expected_docs_url
Returns the expected docs.rs URL for a crate name.
expected_repository_url
Returns the expected RustUse GitHub repository URL for a repository name.
is_prerelease
Returns true when a version contains prerelease metadata.
is_use_prefixed
Returns true when a crate name uses the RustUse use-* prefix.
is_valid_crate_name
Returns true when a value is a valid crate name under RustUse defaults.
module_name_to_crate_name
Converts a Rust module name like use_release into a crate name.
next_major
Returns the next major version.
next_minor
Returns the next minor version.
next_patch
Returns the next patch version.
normalize_crate_name
Normalizes a crate name by trimming, ASCII-lowercasing, replacing spaces or underscores with hyphens, collapsing repeated hyphens, and trimming edges.
parse_version
Parses a semantic version string.
validate_crate_metadata
Validates crate metadata against RustUse naming and URL defaults.