silk.build.context.
Package context and local input closure for resolving compilation definitions.
Import as Context with import silk.build.context as Context.
Public declarations: 9.
manifest#
pub effect fn manifest() -> Path
! StepFailure
? &mut Allocator | &mut FileSystem | &mut HostInputFinds the nearest package manifest above the task's package or current directory.
compilerPath#
pub effect fn compilerPath() -> Path
! StepFailure
? &mut Allocator | &mut HostInput | &mut FileSystemReturns the compiler that launched the task, or the installed silkc executable.
compiler#
pub effect fn compiler() -> Deferred<Path>
! StepFailure
? &mut Allocator | &mut HostInput | &mut FileSystemNames the task's compiler as a deferred executable input.
text#
pub effect fn text(path: &Path) -> String
! StepFailure
? &mut AllocatorCopies a path as validated UTF-8 text.
path#
pub effect fn path(base: &Path, value: string) -> Path
! StepFailure
? &mut AllocatorResolves a user path against the package directory, accepting absolute paths explicitly.
Inputs#
pub struct InputsLocal package trees and ancestor catalogs that can affect resolution.
Field packages#
pub packages: List<String>Existing declared package and source trees.
Field files#
pub files: List<String>Enclosing workspace manifests.
inputs#
pub effect fn inputs(manifest: &Path) -> Inputs
! StepFailure
? &mut Allocator | &mut FileSystemCollects local inputs without fetching remote pins. Unused malformed manifests remain data.
standardLibrary#
pub effect fn standardLibrary() -> Option<String>
! StepFailure
? &mut HostInput | &mut AllocatorReturns the standard library selected by the compiler that launched this task. An absent value leaves selection to the installed compiler.
planIndex#
pub effect fn planIndex() -> string<'static>
! HostInputError | OutOfMemoryError
? &mut HostInput | &mut AllocatorThe request-set index selected by the CLI while it collects workspace package plans. Package plans stage their index until the CLI can publish the complete workspace set.
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.