silk.build.package.
Per-package backend settings and typed parameter bindings in a compilation graph.
Import as Package with import silk.build.package { Package }.
Public declarations: 4.
Package#
pub struct PackageOverrides that affect only the selected declared package.
Field optimization#
pub optimization: Option<Deferred<Optimize>>Field debugging#
pub debugging: Option<Deferred<bool>>Field bindings#
pub bindings: List<Binding>Field excluded#
pub excluded: boolImplementation Schema for Package#
impl Schema for PackageImplementation Package#
impl PackageAssociated function make#
pub fn make() -> SelfCreates an override that preserves the compilation's defaults.
Method optimize#
pub fn optimize(self: Self, value: Deferred<Optimize>) -> SelfSelects optimization for code defined in this package, including generic instantiations.
Method debug#
pub fn debug(self: Self, value: Deferred<bool>) -> SelfSelects debug information for code defined in this package.
Method set#
pub effect fn set<T: Schema + ParameterInput + Transferable + 'static>(
self: Self,
module: string,
name: string,
value: Deferred<T>,
) -> Self
! StepFailure
? &mut AllocatorBinds a typed value to a public parameter declared in module, such as build.silk.
Method supplyPath#
pub effect fn supplyPath(self: Self, module: string, name: string, value: Deferred<Path>) -> Self
! StepFailure
? &mut AllocatorGrants the package's plan read access to a declared path parameter.
Associated function path#
pub effect fn path(name: string, subpath: string) -> Deferred<Path>
! StepFailure
? &mut Allocator | &mut HostInput | &mut FileSystemNames a file or directory listed in a declared dependency's package.include.
Only a consumer's use resolves and fetches the dependency. No package code is evaluated.
The consumer keys the referenced file or tree, including changes to a local dependency.
Method without#
pub fn without(self: Self) -> SelfExcludes this dependency from the compilation's available import graph.
key#
pub effect fn key(package: &Package, key: &mut Key) -> ()
! StepFailure
? &mut AllocatorDeclares the deferred values and supplied paths that determine the override.
resolve#
pub effect fn resolve(package: &Package, make: &mut Make) -> Definitions.Package
! StepFailure
? &mut AllocatorResolves overrides only after every declared producer has completed.
restorePath#
pub effect fn restorePath(step: &[u8]) -> StepHandle
! StepFailure
? &mut Allocator | &mut FileSystemRestores a described dependency path lookup as a step this process can run.
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.