Skip to main content

Crate turbo_tasks_fs

Crate turbo_tasks_fs 

Source

Modules§

embed
glob
invalidation
json
rope
source_context
util

Macros§

embed_directory
Returns an embedded Vc<Box<dyn FileSystem>> for the given path.

Structs§

DiskFileSystem
DiskFileSystem carries serializable fields (name, root, denied_paths) inside DiskFileSystemInner alongside session-scoped state (the notify watcher, invalidator maps, weak TurboTasksApi, etc.) This is important to maintain invariants in a session and ensure invalidations work, so we never evict this data.
DiskWatcherConfig
File
FileLine
FileMeta
FileSystemPath
FileSystemPathOption
This is a transparent value type wrapping Option<FileSystemPath>.
LinkType
NullFileSystem
ReadGlobResult
RealPathResult
VirtualFileSystem

Enums§

DirectoryContent
DirectoryEntry
DiskWatcherRecursiveMode
Equivalent to [notify::RecursiveMode], but implements traits needed by [turbo_tasks].
FileContent
FileJsonContent
A file’s content interpreted as a JSON value.
FileLinesContent
FileSystemEntryType
LinkContent
The contents of a symbolic link. On Windows, this may be a junction point.
Permissions
PersistedFileContent
A persisted version of FileContent that stores the full file content in the task cache.
RawDirectoryContent
RawDirectoryEntry
RealPathResultError
Errors that can occur when resolving a path with symlinks. Many of these can be transient conditions that might happen when package managers are running.

Traits§

FileSystem

Functions§

canonicalize_to_rcstr
A thin wrapper around std::fs::canonicalize that returns the result as an [RcStr].
rebase
to_sys_path
to_verbatim_with_case_folded_disk
Converts path into the verbatim, drive-letter-case-folded representation used internally by crate::DiskFileSystem on Windows.
validate_path_length
Validate the path, returning the valid path, a modified-but-now-valid path, or bailing with an error.