Skip to main content

Crate rspack_paths

Crate rspack_paths 

Source

Structs§

ArcPath
ResolverPath
A path returned in crate::ResolveContext dependencies, paired with a precomputed FxHash of the path bytes.
Utf8Components
An iterator over the Utf8Components of a Utf8Path.
Utf8Path
A slice of a UTF-8 path (akin to str).
Utf8PathBuf
An owned, mutable UTF-8 path (akin to String).

Enums§

Utf8Component
A single component of a path.
Utf8Prefix
Windows path prefixes, e.g., C: or \\server\share.

Traits§

AssertUtf8

Functions§

hash_path
Hash a path with FxHasher matching the bytes-on-unix optimization used by rspack_resolver. Keeping these in sync lets ArcPath::from_parts accept a hash precomputed inside the resolver without rehashing here.

Type Aliases§

ArcPathDashMap
A standard DashMap using ArcPath as the key type with a custom Hasher that just uses the precomputed hash for speed instead of calculating it.
ArcPathDashSet
A standard DashSet using ArcPath as the key type with a custom Hasher that just uses the precomputed hash for speed instead of calculating it.
ArcPathIndexSet
A standard IndexSet using ArcPath as the key type with a custom Hasher that just uses the precomputed hash for speed instead of calculating it.
ArcPathMap
A standard HashMap using ArcPath as the key type with a custom Hasher that just uses the precomputed hash for speed instead of calculating it.
ArcPathSet
A standard HashSet using ArcPath as the key type with a custom Hasher that just uses the precomputed hash for speed instead of calculating it.
ArcResolverPathSet
A HashSet<ResolverPath, IdentityHasher> that preserves the FxHash precomputed inside rspack_resolver. Inserting and looking up entries here only costs a write_u64 instead of hashing the full absolute path.