Browse the docs

silk.platform.windows.start.

Synchronous Windows executable entry without a C runtime.

When to use#

The Windows hosted composition selects this module. It exports mainCRTStartup, captures raw host inputs, invokes the application, and ends the process with ExitProcess.

Details#

main returns i32, (), or an effect of either result, optionally requiring HostInput. Other requirements must be supplied by the application. Errors must implement Debug. Unhandled errors use the shared bounded native report and exit with status 1.

Gotchas#

This entry does not support parking or install Windows exception handlers. Traps do not unwind.

Public declarations: 0.

This module declares no public items.

Category: Windows platform.

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