silk.build.embed.
Generated modules that expose a declared file's bytes as a static value.
Import as Embed with import silk.build.embed as Embed.
Public declarations: 2.
module#
pub effect fn module(input: Deferred<Path>) -> Deferred<Path>
! StepFailure
? &mut AllocatorProduces a module with pub const data: &'static [u8] containing exactly the input file's bytes.
The file's producer runs first, and its content determines the generated module's cache key.
restore#
pub effect fn restore(step: &[u8]) -> StepHandle
! StepFailure
? &mut AllocatorRestores a described embedding 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.