silk.build.descriptor.

Immutable descriptions shared by static package plans and runtime build steps.

Import as Descriptor with import silk.build.descriptor as Descriptor.

Public declarations: 7.

Chain#

silk
pub struct Chain<T>

A persistent sequence constructed without allocation during static evaluation.

Field previous#

silk
pub previous: Option<&'static Chain<T>>

The preceding entries, in reverse insertion order.

Field value#

silk
pub value: T

The last inserted entry.

Implementation Chain<T>#

silk
impl<T> Chain<T>

Associated function append#

silk
pub static fn append(previous: Option<&'static Self>, value: T) -> Option<&'static Self>

Appends an entry to an immutable static sequence.

Input#

silk
pub union Input

An existing package file, an explicitly supplied host path, or another standard step's output.

Source#

silk
Source

A path confined to the declaring package.

Field path#

silk
pub path: string<'static>

Supplied#

silk
Supplied

A path supplied by the root command as a package parameter.

Field path#

silk
pub path: string<'static>

Archive#

silk
Archive

A file in a native archive pinned by the declaring package manifest.

Field name#

silk
pub name: string<'static>

Field path#

silk
pub path: string<'static>

Output#

silk
Output

A declared output of a process or generated-file step.

Field step#

silk
pub step: &'static Action

Field name#

silk
pub name: string<'static>

Implementation Copy for Input#

silk
impl Copy for Input

Argument#

silk
pub union Argument

One argument or declared dependency of a process.

Text#

silk
Text

Literal argument text.

Field value#

silk
pub value: string<'static>

Input#

silk
Input

A path argument whose input contents enter the step's key.

Field path#

silk
pub path: Input

Output#

silk
Output

An argument naming a required output below the step's private directory.

Field name#

silk
pub name: string<'static>

File#

silk
File

A file dependency that adds no argument.

Field path#

silk
pub path: Input

Tree#

silk
Tree

A directory dependency that adds no argument.

Field path#

silk
pub path: Input

Implementation Copy for Argument#

silk
impl Copy for Argument

Invocation#

silk
pub struct Invocation

A process's executable and ordered arguments and dependencies.

Field program#

silk
pub program: Input

The executable file, confined like every other declared input.

Field arguments#

silk
pub arguments: Option<&'static Chain<Argument>>

Arguments and dependencies in reverse insertion order.

Implementation Copy for Invocation#

silk
impl Copy for Invocation

File#

silk
pub struct File

One generated UTF-8 file.

Field name#

silk
pub name: string<'static>

Its path below the step's private output directory.

Field content#

silk
pub content: string<'static>

Its complete contents.

Implementation Copy for File#

silk
impl Copy for File

Action#

silk
pub union Action

A standard build action that can be described in a pure package plan.

Run#

silk
Run

A process invocation with explicit input and output dependencies.

Field invocation#

silk
pub invocation: Invocation

WriteFiles#

silk
WriteFiles

Generated files whose contents are already known.

Field files#

silk
pub files: Option<&'static Chain<File>>

Implementation Copy for Action#

silk
impl Copy for Action

sameInput#

silk
pub fn sameInput(left: &Input, right: &Input) -> bool

Compares deferred references within one graph; producer content determines persistent keys.

Profiles: aarch64-apple-darwin, aarch64-unknown-linux-gnu, aarch64-unknown-linux-gnu-no-libc, x86_64-unknown-linux-gnu, x86_64-unknown-linux-gnu-no-libc, wasm32-unknown-unknown, wasm32-wasip1, wasm32-wasip2, x86_64-pc-windows-msvc, wasm64-unknown-unknown.

View the source of this page