Browse the docs

Overview.

Overview#

These pages cover how Silk code is organized and built, from a single file up to a workspace of packages.

PageWhat it covers
The manifestEvery key silk.toml accepts, with defaults and the errors for bad values.
Modules and importsHow file paths become module names, import forms, and the import errors.
The standard libraryWhere the std lib lives, how its modules are imported, and --stdlib.
DependenciesPath and git dependencies, silk add and silk remove, and how names resolve.
Libraries and exportsBuilding a library, the exports list, and linking a Silk library from C.
WorkspacesMember packages, commands run from the root, -p and --workspace, and the shared output directory.
Targets and profilesThe six accepted targets (WASI included), cross builds, optimization levels, named profiles and profile-guided optimization.
Build outputs and native linkingArtifact kinds, stages, the output layout, native link inputs, C sources and prebuilt archives.
Build plans and generated codeEmbedding package files, silk generate, build.silk plans and sandboxed tool steps.

View the source of this page