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.
TurboBackingStorage
The higher-level backing storage passed to TurboTasksBackend::new, used by crate::turbo_backing_storage and crate::noop_backing_storage.
TurboTasksBackend

Enums§

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

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 in-memory BackingStorage to be passed to TurboTasksBackend::new. Backed by an empty, read-only TurboPersistence — reads return None, writes are not expected (callers should set BackendOptions::storage_mode to None).
turbo_backing_storage
Creates a BackingStorage to be passed to TurboTasksBackend::new.