pub struct PrebuiltConfig {
pub path: String,
}Expand description
Per-build options for builder: prebuilt. Required when builder: prebuilt
is set on the same builds[] entry.
Fields§
§path: StringTemplate path to the imported binary on disk. Rendered once per
target with these template variables available in addition to the
project-wide globals (Version, ProjectName, …):
{{ Target }}— the full Rust target triple (e.g.x86_64-unknown-linux-gnu).{{ Os }}— the OS slug (linux,darwin,windows, …).{{ Arch }}— the architecture slug (amd64,arm64,armv7, …).{{ Amd64 }}— AMD64 micro-architecture variant (v1/v2/v3/v4); set forx86_64-*triples.{{ Arm64 }}— ARM64 micro-architecture variant (v8); set foraarch64-*triples.{{ Arm }}— ARM micro-architecture variant (6/7); set forarmv6*/armv7*triples.{{ I386 }}— i386 micro-architecture variant (sse2); set fori686-*/i386-*/i586-*triples.{{ ArtifactExt }}—.exeon Windows targets, empty elsewhere.{{ ArtifactID }}— the build entry’sid:(empty when unset).
The rendered path is stat()-ed before the import, unless
--dry-run is active, in which case the stat is skipped and the
path is accepted as given. A missing file, a permission error, or
any other I/O failure aborts the build with a message that names
both the rendered path and the originating target triple, matching
the “build will fail” contract.
Recommendation: place the staged binaries OUTSIDE dist/. The
release pipeline removes dist/ on every run; pointing path: at
dist/... will resolve against an empty directory.
Trait Implementations§
Source§impl Clone for PrebuiltConfig
impl Clone for PrebuiltConfig
Source§fn clone(&self) -> PrebuiltConfig
fn clone(&self) -> PrebuiltConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PrebuiltConfig
impl Debug for PrebuiltConfig
Source§impl Default for PrebuiltConfig
impl Default for PrebuiltConfig
Source§fn default() -> PrebuiltConfig
fn default() -> PrebuiltConfig
Source§impl<'de> Deserialize<'de> for PrebuiltConfigwhere
PrebuiltConfig: Default,
impl<'de> Deserialize<'de> for PrebuiltConfigwhere
PrebuiltConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for PrebuiltConfig
impl JsonSchema for PrebuiltConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more