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#
pub struct Chain<T>A persistent sequence constructed without allocation during static evaluation.
Field previous#
pub previous: Option<&'static Chain<T>>The preceding entries, in reverse insertion order.
Field value#
pub value: TThe last inserted entry.
Implementation Chain<T>#
impl<T> Chain<T>Associated function append#
pub static fn append(previous: Option<&'static Self>, value: T) -> Option<&'static Self>Appends an entry to an immutable static sequence.
Input#
pub union InputAn existing package file, an explicitly supplied host path, or another standard step's output.
Source#
SourceA path confined to the declaring package.
Field path#
pub path: string<'static>Supplied#
SuppliedA path supplied by the root command as a package parameter.
Field path#
pub path: string<'static>Archive#
ArchiveA file in a native archive pinned by the declaring package manifest.
Field name#
pub name: string<'static>Field path#
pub path: string<'static>Output#
OutputA declared output of a process or generated-file step.
Field step#
pub step: &'static ActionField name#
pub name: string<'static>Implementation Copy for Input#
impl Copy for InputArgument#
pub union ArgumentOne argument or declared dependency of a process.
Text#
TextLiteral argument text.
Field value#
pub value: string<'static>Input#
InputA path argument whose input contents enter the step's key.
Field path#
pub path: InputOutput#
OutputAn argument naming a required output below the step's private directory.
Field name#
pub name: string<'static>File#
FileA file dependency that adds no argument.
Field path#
pub path: InputTree#
TreeA directory dependency that adds no argument.
Field path#
pub path: InputImplementation Copy for Argument#
impl Copy for ArgumentInvocation#
pub struct InvocationA process's executable and ordered arguments and dependencies.
Field program#
pub program: InputThe executable file, confined like every other declared input.
Field arguments#
pub arguments: Option<&'static Chain<Argument>>Arguments and dependencies in reverse insertion order.
Implementation Copy for Invocation#
impl Copy for InvocationFile#
pub struct FileOne generated UTF-8 file.
Field name#
pub name: string<'static>Its path below the step's private output directory.
Field content#
pub content: string<'static>Its complete contents.
Implementation Copy for File#
impl Copy for FileAction#
pub union ActionA standard build action that can be described in a pure package plan.
Run#
RunA process invocation with explicit input and output dependencies.
Field invocation#
pub invocation: InvocationWriteFiles#
WriteFilesGenerated files whose contents are already known.
Field files#
pub files: Option<&'static Chain<File>>Implementation Copy for Action#
impl Copy for ActionsameInput#
pub fn sameInput(left: &Input, right: &Input) -> boolCompares 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.