silk.build.setting.

Deferred compilation settings resolved by the graph runner.

Import as Setting with import silk.build.setting { Setting }.

Public declarations: 9.

TextField#

silk
pub enum TextField

Target#

silk
Target

Cpu#

silk
Cpu

Deployment#

silk
Deployment

Libc#

silk
Libc

Entry#

silk
Entry

Runtime#

silk
Runtime
silk
Link

CodeModel#

silk
CodeModel

Relocation#

silk
Relocation

Safety#

silk
Safety

Threading#

silk
Threading

Unwind#

silk
Unwind

Backend#

silk
Backend

Implementation Schema for TextField#

silk
impl Schema for TextField

Operation read#

silk
effect fn read<R: SchemaReader>(reader: &mut R) -> Self
    ! Issue | OutOfMemoryError
    ? &mut Allocator

Operation write#

silk
effect fn write<W: SchemaWriter>(self: &Self, writer: &mut W) -> ()
    ! Issue | WriterError | OutOfMemoryError
    ? &mut Writer | &mut Allocator

NumberField#

silk
pub enum NumberField

CodegenUnits#

silk
CodegenUnits

MaxMemory#

silk
MaxMemory

StackSize#

silk
StackSize

Implementation Schema for NumberField#

silk
impl Schema for NumberField

Operation read#

silk
effect fn read<R: SchemaReader>(reader: &mut R) -> Self
    ! Issue | OutOfMemoryError
    ? &mut Allocator

Operation write#

silk
effect fn write<W: SchemaWriter>(self: &Self, writer: &mut W) -> ()
    ! Issue | WriterError | OutOfMemoryError
    ? &mut Writer | &mut Allocator

ListField#

silk
pub enum ListField

CpuFeatures#

silk
CpuFeatures

Sanitizers#

silk
Sanitizers

Implementation Schema for ListField#

silk
impl Schema for ListField

Operation read#

silk
effect fn read<R: SchemaReader>(reader: &mut R) -> Self
    ! Issue | OutOfMemoryError
    ? &mut Allocator

Operation write#

silk
effect fn write<W: SchemaWriter>(self: &Self, writer: &mut W) -> ()
    ! Issue | WriterError | OutOfMemoryError
    ? &mut Writer | &mut Allocator

Setting#

silk
pub union Setting

A setting whose dependencies enter the compilation key before its value is read.

Text#

silk
Text

Field field#

silk
pub field: TextField

Field value#

silk
pub value: Deferred<String>

Number#

silk
Number

Field field#

silk
pub field: NumberField

Field value#

silk
pub value: Deferred<u64>

Texts#

silk
Texts

Field field#

silk
pub field: ListField

Field value#

silk
pub value: Deferred<List<String>>

Optimization#

silk
Optimization

Field value#

silk
pub value: Deferred<Optimize>

Debug#

silk
Debug

Field value#

silk
pub value: Deferred<bool>

Runner#

silk
Runner

Field value#

silk
pub value: Deferred<Runner>

StandardLibrary#

silk
StandardLibrary

Field path#

silk
pub path: Deferred<Path>

Platform#

silk
Platform

Field value#

silk
pub value: Deferred<Platform>

Windows#

silk
Windows

Field value#

silk
pub value: Deferred<Windows>

MacOS#

silk
MacOS

Field value#

silk
pub value: Deferred<MacOS>

Wasm#

silk
Wasm

Field value#

silk
pub value: Deferred<Wasm>
silk
Header

Field value#

silk
pub value: Deferred<String>

ImportLibrary#

silk
ImportLibrary

Field value#

silk
pub value: Deferred<String>

Emit#

silk
Emit

Field value#

silk
pub value: Deferred<String>

Root#

silk
Root

Field path#

silk
pub path: Deferred<Path>

ModuleFile#

silk
ModuleFile

Field name#

silk
pub name: String

Field path#

silk
pub path: Deferred<Path>

Native#

silk
Native

Field language#

silk
pub language: String

Field path#

silk
pub path: Deferred<Path>

Field flags#

silk
pub flags: Deferred<List<String>>

Field include#

silk
pub include: List<Deferred<Path>>

LinkFile#

silk
LinkFile

Field kind#

silk
pub kind: String

Field path#

silk
pub path: Deferred<Path>

LinkName#

silk
LinkName

Field kind#

silk
pub kind: String

Field name#

silk
pub name: Deferred<String>

Field mode#

silk
pub mode: Option<String>

Field weak#

silk
pub weak: bool

Field needed#

silk
pub needed: bool

FunctionOrder#

silk
FunctionOrder

Field path#

silk
pub path: Deferred<Path>

Package#

silk
Package

Field alias#

silk
pub alias: String

Field settings#

silk
pub settings: Package

Implementation Schema for Setting#

silk
impl Schema for Setting

replaces#

silk
pub fn replaces(later: &Setting, earlier: &Setting) -> bool

Reports whether a later setting replaces an earlier setting's value and inputs.

clearReplaced#

silk
pub fn clearReplaced(definition: &mut Definition, setting: &Setting) -> ()

Removes physical inputs replaced by deferred settings before the definition is keyed.

key#

silk
pub effect fn key(setting: &Setting, key: &mut Key) -> ()
  ! StepFailure
  ? &mut Allocator

Adds a setting's identity and all deferred inputs to the compilation key.

apply#

silk
pub effect fn apply(setting: &Setting, make: &mut Make, definition: &mut Definition) -> ()
  ! StepFailure
  ? &mut Allocator

Resolves a setting only after its declared prerequisites have completed.

keyValues#

silk
pub effect fn keyValues(values: &Values, key: &mut Key) -> ()
  ! StepFailure
  ? &mut Allocator

Declares every physical input already present in a compilation definition.

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