mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-27 18:26:19 +00:00
manual: Document all rust-project.json fields
Ensure that all the fields that rust-analyzer understands are in the manual, they all have doc comments, and they use consistent punctuation (`;` rather than mixing `,` and `;`). Whilst we're here, fix the `sysroot_src` example and add 2024 as a legal value for Rust edition.
This commit is contained in:
parent
0b68402d78
commit
86a4b2fdd7
2 changed files with 84 additions and 8 deletions
|
|
@ -63,7 +63,7 @@ use crate::{ManifestPath, TargetKind};
|
|||
pub struct ProjectJson {
|
||||
/// e.g. `path/to/sysroot`
|
||||
pub(crate) sysroot: Option<AbsPathBuf>,
|
||||
/// e.g. `path/to/sysroot/lib/rustlib/src/rust`
|
||||
/// e.g. `path/to/sysroot/lib/rustlib/src/rust/library`
|
||||
pub(crate) sysroot_src: Option<AbsPathBuf>,
|
||||
project_root: AbsPathBuf,
|
||||
/// The path to the rust-project.json file. May be None if this
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue