Expand description
base_db defines basic database traits. The concrete DB is defined by ide.
Re-exports§
pub use query_group;
pub use salsa;
Macros§
Structs§
- Path relative to a file.
- Path relative to a file.
- Optional build metadata identifier. This comes after
+
in a SemVer version, as in0.8.1+zstd.1.5.0
. - Crate related data shared by the whole workspace.
- The mapping from
UniqueCrateData
to theirCrate
input. - Crate data unrelated to analysis.
- Encapsulate a bunch of raw
.set
calls on the database. - Handle to a file in [
Vfs
] - Optional pre-release identifier on a version string. This comes after
-
in a SemVer version, like1.0.0-alpha.1
- 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.
- The crate data from which we derive the
Crate
. - SemVer version as defined by https://semver.org.
- SemVer version requirement describing the intersection of some version comparators, such as
>=1.2.3, <1.8
. - Path in
Vfs
.
Enums§
- Origin of the crates.
Constants§
Traits§
- Database which stores all significant input facts: source code and project model. Everything else in rust-analyzer is derived from these queries.