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:
Wilfred Hughes 2025-01-07 16:37:49 -08:00
parent 0b68402d78
commit 86a4b2fdd7
2 changed files with 84 additions and 8 deletions

View file

@ -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