Packages

What ships with Vyi

The standard packages come with the compiler. Import one by name, as in import { println } from "@fmt", with nothing to install. Each name below links to its reference page.

Standard packages

@libc, @wasm, and @wasi-preview1 declare the operating-system and runtime functions that @io and @mem are built on. Most programs never import them.

Making your own package

A package is a directory with a package.vyipac manifest at its root. The manifest names the package and lists its programs and the library file other packages import. Guide 14, Modules and packages shows how to set one up, and the manifest reference lists every key.

Planned

A registry to publish packages and fetch them by name and version. Until it exists, a manifest can declare dependencies, but they cannot be installed. Published packages will get rendered reference pages here.