Expand description
Binary used for automatic Rust workspace discovery by rust-analyzer
.
See rust-analyzer documentation for a thorough description of this interface.
Modulesยง
- query ๐
- rust_
project ๐ - Library for generating rust_project.json files from a
Vec<CrateSpec>
See official documentation of file format at https://rust-analyzer.github.io/manual.html
Re-exportsยง
pub use rust_project::DiscoverProject;
pub use rust_project::RustAnalyzerArg;
Constantsยง
Functionsยง
- find_
workspace_ ๐root_ file - Looks within the current directory for a file that marks a bazel workspace.
- project_
discovery ๐ - write_
discovery ๐ - main ๐
Structsยง
- Config
- Config
Parser ๐
Functionsยง
- generate_
rust_ project - bazel_
info - Executes
bazel info
to get a map of context information. - bazel_
command ๐ - deserialize_
file_ ๐content - source_
file_ ๐to_ buildfile rust-analyzer
associates workspaces with buildfiles. Therefore, when it passes in a source file path, we use this function to identify the buildfile the file belongs to.- buildfile_
to_ ๐targets
Structsยง
- Toolchain
Info ๐