Expand description
base_db defines basic database traits. The concrete DB is defined by ide.
Re-exports§
pub use salsa;
pub use salsa_macros;
pub use query_group;
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
. - Crate
- Crate
Builder - Crate
Display Name - Crate
Graph Builder - Crate
Name - Crate
Workspace Data - Crate related data shared by the whole workspace.
- Crates
Map - The mapping from
UniqueCrateData
to theirCrate
input. - DbPanic
Context - Editioned
File Id - Env
- Extra
Crate Data - Crate data unrelated to analysis.
- File
Change - Encapsulate a bunch of raw
.set
calls on the database. - FileId
- Handle to a file in
Vfs
- FileSet
- A set of
VfsPath
s identified byFileId
s. - File
Source Root Input - File
Text - Files
- Prerelease
- Optional pre-release identifier on a version string. This comes after
-
in a SemVer version, like1.0.0-alpha.1
- 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 Id - Source
Root Input - Unique
Crate Data - The crate data from which we derive the
Crate
. - 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§
- Crate
Origin - Origin of the crates.
- Lang
Crate Origin - Release
Channel
Constants§
Traits§
- Root
Query Db - Database which stores all significant input facts: source code and project model. Everything else in rust-analyzer is derived from these queries.
- Source
Database