Skip to main content

Crate turbo_tasks_backend

Crate turbo_tasks_backend 

Source

Modules§

db_invalidation

Structs§

BackendOptions
GitVersionInfo
Information gathered by vergen_gitcl in the top-level binary crate and passed down. This information must be computed in the top-level crate for cargo incremental compilation to work correctly.
KeyValueDatabaseBackingStorage
TurboTasksBackend

Enums§

StartupCacheState
Information about if there’s was a pre-existing cache or if the cache was detected as invalidated during startup.
StorageMode

Traits§

BackingStorage
Represents types accepted by TurboTasksBackend::new. Typically this is the value returned by turbo_backing_storage or noop_backing_storage.

Functions§

compact_database
Opens a Turbopack persistent cache database at the given base path and performs a full compaction. This is intended for use by the next internal post-build CLI command to optimize the database after a build, without requiring the full turbo-tasks runtime.
handle_db_versioning
Given a base path, creates a version directory for the given version_info. Automatically cleans up old/stale databases.
noop_backing_storage
Creates an no-op in-memory BackingStorage to be passed to TurboTasksBackend::new.
turbo_backing_storage
Creates a BackingStorage to be passed to TurboTasksBackend::new.

Type Aliases§

NoopBackingStorage
TurboBackingStorage