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.
DiskFileSystemMap
An ordered set of canonical system roots and their owning filesystems.
DiskWatcherConfig
File
FileLine
FileMeta
FileSystemPath
FileSystemPathOption
This is a transparent value type wrapping Option<FileSystemPath>.
NullFileSystem
ReadGlobResult
RealPathError
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.
RealPathWithLinksResult
VirtualFileSystem
WriteLinkContent
The symbolic link to create at a path, passed to FileSystemPath::write_link.

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, as read from a filesystem. On Windows, this may be a junction point.
LinkTarget
The target of a symbolic link, as read from a filesystem.
Permissions
PersistedFileContent
A persisted version of FileContent that stores the full file content in the task cache.
RawDirectoryContent
RawDirectoryEntry
RealPathErrorType
WriteLinkTargetType
The file type of the target of a newly written link. This value is only used on Windows.

Traits§

DiskWatcherPathMatcher
Matches absolute paths reported by the filesystem watcher. See DiskWatcherConfig::extended_batch_delay_matcher.
FileSystem

Functions§

canonicalize_to_rcstr
A thin wrapper around std::fs::canonicalize that returns the result as an [RcStr].
rebase
to_sys_path
validate_path_length
Validate the path, returning the valid path, a modified-but-now-valid path, or bailing with an error.