Expand description
Shared API and identity types for the stow workspace.
The crate contains the wire types CI, edge, scheduler, and CLI exchange
over HTTP / D1, plus the identity newtypes (CrateName, CMetadata,
TargetTriple, WireRustcVersion, FeaturesJson,
DependencyCMetadataJson) that enforce the five-element artifact identity
tuple at compile time.
Modules§
- api
- HTTP wire types exchanged between the CLI, the edge worker, the scheduler Durable Object, and trusted CI.
- artifact
- Artifact classification and identity: rustc crate types, artifact kinds,
the semantic
ArtifactKey, and the bundle metadata CI records alongside each uploaded artifact. - bundle
- OCI bundle layout and assembly.
- bundle_
schema - Schema/identity validation for assembled artifact bundles.
- capture
- Rustc capture records shared between the capture wrapper and the build stage.
- crate_
info - Crate coordinates (
CrateId) and the canonicalFeatureSetused in artifact identity hashing. - error
- The error type shared across stow crates, plus the
Contextextension trait that annotates foreignResults with stow-style context. - hash
- Deterministic BLAKE3 hashing of
ArtifactKeyfor analytics and display. - identity
- Newtype wrappers for the five-element artifact identity carried over the wire and persisted in D1.
- index
- The signed per-
(target, rustc_version)artifact index published to GHCR (water-rs/stow#188). - native_
capture - Capture of a build script’s
OUT_DIRproducts intoNativeArtifacts. - platform
- Toolchain and target descriptions: target triples, rustc versions, compile profiles, and panic strategy.
- pow
- Shared proof-of-work metric for the enqueue admission flow.
- public_
cache - Derivation of the stable artifact identity a crates.io-registry build maps
to: the compile key,
c_metadata, andextra_filenamecomputed from a captured rustc invocation. - registry
- GHCR OCI reference construction and parsing for stow artifacts.
- rustc
- Parser for the rustc command line the wrapper observes, plus helpers that decide cacheability and predict output paths from the parsed arguments.
- trusted_
builder - Identity of the one GitHub Actions workflow whose signatures the CLI trusts.
- upload_
plan - Upload planning: the
PlannedArtifactlist CI produces after a build, and the compile-key hash that binds a cached artifact to one exact rustc invocation identity. - versioning
- Semver reasoning for cache coverage: which upgrade a client may accept silently, and which breaking line a version belongs to.
Macros§
- stow_
error - Build an
Errorfrom aformat!-style message.