ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Registry.Cargo.Project

Description

Cargo identities for the supported crates.io-compatible ASCII name contract.

Synopsis

Documentation

projectName :: Text -> Either ParseError PackageName Source #

Parse a native name, retaining its published case and separator spelling.

cargoNameKey :: Text -> Text Source #

Lowercase ASCII letters for index lookup, preserving hyphens and underscores.

cargoNameChars :: [Char] Source #

Native name characters also cover every level of CodeArtifact prefix subdivision.

cargoCollisionKey :: PackageName -> Maybe Text Source #

Match ownership aliases only for an unscoped Cargo identity.

cargoArchiveStem :: Text -> Text -> Text Source #

The archive root directory: the published name and raw version joined by a hyphen.

cargoArchiveFilename :: Text -> Version -> Text Source #

The logical .crate filename for a published name and raw version.