silk.build.host.

The compiler's side of a described build graph: restore it, run it and answer what it made.

Import as Host with import silk.build.host as Host.

Public declarations: 2.

Served#

silk
pub struct Served

What serving a described graph answers to the compiler's command line.

Field status#

silk
pub status: i32

The process status: 0 once an outcome is written, even one that reports a failure.

Field artifacts#

silk
pub artifacts: List<String>

The artifacts the graph compiled and published.

serve#

silk
pub effect fn serve(description: &Path, outcome: &Path) -> Served
  ! OutOfMemoryError
  ? &mut Allocator | &mut FileSystem | &mut HostInput

Runs the graph described in the file description and writes its outcome to outcome.

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