silk.build.publish.

Copies completed build outputs without exposing partially written files.

Import as Publish with import silk.build.publish as Publish.

Public declarations: 2.

copy#

silk
pub effect fn copy(source: &Path, destination: &Path) -> () ! AtomicWriteError | FileError | OutOfMemoryError
? &mut Allocator | &mut FileSystem

Copies a completed file or directory tree. Files replace their destination atomically and retain executable permissions on Unix. Directory copies remove stale destination entries after copying their current files.

artifact#

silk
pub effect fn artifact(source: &Path, destination: &Path) -> () ! AtomicWriteError | FileError | OutOfMemoryError
? &mut Allocator | &mut FileSystem

Publishes an artifact and any symbol map or macOS debug bundle stored beside it.

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