ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Registry.Cargo.Archive

Description

Inspect verified Cargo archives without extraction or execution. Publication text uses one further local pass.

Synopsis

Documentation

data CargoArchiveMetadata Source #

The inspected source bytes, checked against the admitted SHA-256 when one exists.

inspectCargoArchive :: Limits -> (Int -> IO ()) -> Text -> Text -> Maybe Text -> ByteString -> IO (Either ParseError CargoArchiveMetadata) Source #

Charge extra workspace as an absolute total. The caller owns the compressed-byte charge. A first-party upload carries no checksum, so only an admitted SHA-256 is compared.

cargoPublicationMetadata :: Limits -> (Int -> IO ()) -> CargoArchiveMetadata -> IO (Either ParseError CargoPublishMetadata) Source #

Capture only the selected README and licence after the manifest pass, using the same verified compressed bytes.

cargoPublicationAgreement :: Limits -> (Int -> IO ()) -> CargoArchiveMetadata -> Value -> CargoPublishMetadata -> IO (Either ParseError CargoPublishMetadata) Source #

Compare mirror source claims after reserving both resolver inputs.

cargoUploadAgreement :: Limits -> (Int -> IO ()) -> Int -> Text -> Value -> CargoArchiveMetadata -> IO (Either ParseError ()) Source #

Reuse the retained effective manifest without a text extraction or another archive pass.