pub struct CrateRequest {
pub crate_name: CrateName,
pub version: Option<CrateVersion>,
pub features_json: FeaturesJson,
pub turnstile_token: String,
}Expand description
Request body for POST /api/v1/requests: a human asking for one crate
to be built into the public cache.
The endpoint is the submission path behind the request form on
stow.waterui.dev; the Turnstile token is the admission check and every
accepted request lands in the scheduler’s human lane ahead of the
cache-miss queue.
Fields§
§crate_name: CrateNameCrate name as published on crates.io.
version: Option<CrateVersion>Exact version to request. When None the edge resolves the newest
non-prerelease, non-yanked crates.io version.
features_json: FeaturesJsonFeatures to enable for the requested crate, in the canonical
FeaturesJson representation. The list is taken literally:
["default", ...] builds with default features on, and an empty
list is --no-default-features with nothing added.
turnstile_token: StringCloudflare Turnstile token produced by the invisible widget. Verified against siteverify before the edge does any resolution work.