IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: 1.0
For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

builtin

Language foundation: built-in types, traits, and fundamental operations.

The builtin package provides the core types, traits, and operations that form the foundation of the Mojo language. It defines fundamental types like integers, booleans, and strings, essential traits for type behavior (Copyable, Movable, Comparable), and basic operations used throughout all Mojo code. Most symbols from this package are automatically available without explicit imports through the prelude.

This package is implicitly imported. It defines the core vocabulary of Mojo programming that every developer uses without thinking about imports. Library authors implement traits from this package to integrate custom types with language features.

Modules