Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Disclaimer: This documentation is targeted towards people making changes to the Rust Turbopack codebase. If you are using Turbopack in a Next.js project, please refer to the Next.js documentation.

Turbo Tasks

Turbo Tasks is the incremental computation framework that powers Turbopack.

Shared Data Structures

These crates provide shared data structures and utilities used throughout the project.

Core

There crates are the core of turbopack, providing the basic traits and types. This handles things such as issue reporting, resolving, and environments.

Utils

These crates provide utility functions and types that are used throughout the project.

Modules

These crates provide implementations of various module types.

Output

These crates provide implementations of various output formats.

Facade

These crates provide the facade to use Turbopack. They combine the different modules and output formats into presets and handle the default module rules.

  • turbopack: The main facade bundling all module types and rules when to apply them, presets for resolving and module processing

CLI

These crates provide the standalong CLI and the dev server.

CLI Utils

These crates provide utility functions for the CLI.

Tools

These crates provide tools to test, benchmark and trace Turbopack.

Additional Material: Conference Talks and Blog Posts