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
@fmtprint and println, string templates, and the IntoString interface for printing your own types.@coreOptional, Result, and Range, plus String, Vec, HashMap, and number formatting.@ioStandard input, output, and error, buffered reading and writing, and the program's arguments.@memThe Allocator interface, arena and fixed-buffer allocators, Buffer, and byte operations.@errorsError, an error that records the call stack where it was built.@testingdescribe, it, and expect, run by vyi test.@traceThe file, line, and column of each call in progress.@cryptoRandom bytes from the host, on WebAssembly.@cThe c namespace for calling C, and conversions between Vyi and C strings.@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.