Expand description
base_db defines basic database traits. The concrete DB is defined by ide.
Re-exports§
pub use ra_salsa;
Macros§
Structs§
- Anchored
Path - Path relative to a file.
- Anchored
Path Buf - Path relative to a file.
- Build
Metadata - Optional build metadata identifier. This comes after
+in a SemVer version, as in0.8.1+zstd.1.5.0. - Compressed
File Text Query - Crate
Data - Crate
Display Name - Crate
Graph CrateGraphis a bit of information which turns a set of text files into a number of Rust crates.- Crate
Graph Query - Crate
Name - Crate
Workspace Data - Crate related data shared by the whole workspace.
- Crate
Workspace Data Query - Dependency
- Env
- File
Change - Encapsulate a bunch of raw
.setcalls on the database. - File
Loader Delegate - Silly workaround for cyclic deps due to the SourceRootDatabase and SourceDatabase split regarding FileLoader
- FileSet
- A set of
VfsPaths identified byFileIds. - File
Source Root Query - File
Text Query - Parse
Errors Query - Parse
Query - Prerelease
- Optional pre-release identifier on a version string. This comes after
-in a SemVer version, like1.0.0-alpha.1 - Source
Database Group Storage__ - Source
Database Storage - Representative struct for the query group.
- Source
Root - Files are grouped into source roots. A source root is a directory on the file systems which is watched for changes. Typically it corresponds to a Rust crate. Source roots might be nested: in this case, a file belongs to the nearest enclosing source root. Paths to files are always relative to a source root, and the analyzer does not know the root path of the source root at all. So, a file from one source root can’t refer to a file in another source root by path.
- Source
Root Crates Query - Source
Root Database Group Storage__ - Source
Root Database Storage - Representative struct for the query group.
- Source
Root Id - Source
Root Query - Version
- SemVer version as defined by https://semver.org.
- Version
Req - SemVer version requirement describing the intersection of some version
comparators, such as
>=1.2.3, <1.8. - VfsPath
- Path in
Vfs.
Enums§
- Cancelled
- A panic payload indicating that execution of a salsa query was cancelled.
- Crate
Origin - Origin of the crates.
- Lang
Crate Origin - Release
Channel
Constants§
Traits§
- File
Loader - Source
Database - Database which stores all significant input facts: source code and project model. Everything else in rust-analyzer is derived from these queries.
- Source
Database File Input Ext - Source
Root Database - We don’t want to give HIR knowledge of source roots, hence we extract these methods into a separate DB.
- Upcast