@@ -37,36 +37,36 @@ use std::str::FromStr;
3737pub struct VersionInfo {
3838 pub packages : Vec < Package > ,
3939 /// Format revision of the audit data.
40- ///
40+ ///
4141 /// Format revisions are **backwards compatible.**
4242 /// If an unknown format is encountered, it should be treated as the highest known preceding format.
4343 /// For example, if formats `0`, `1` and `8` are known, format `4` should be treated as if it's `1`.
44- ///
44+ ///
4545 /// ## Known formats
46- ///
46+ ///
4747 /// ### 0 (or the field is absent)
48- ///
48+ ///
4949 /// Generated based on the data provided by [`cargo metadata`](https://doc.rust-lang.org/cargo/commands/cargo-metadata.html).
50- ///
50+ ///
5151 /// There are multiple [known](https://github.com/rust-lang/cargo/issues/7754)
5252 /// [issues](https://github.com/rust-lang/cargo/issues/10718) with this data source,
5353 /// leading to the audit data sometimes including more dependencies than are really used in the build.
54- ///
54+ ///
5555 /// However, is the only machine-readable data source available on stable Rust as of v1.88.
56- ///
57- /// Additionally, this format incorrectly includes [procedural macros](https://doc.rust-lang.org/reference/procedural-macros.html)
56+ ///
57+ /// Additionally, this format incorrectly includes [procedural macros](https://doc.rust-lang.org/reference/procedural-macros.html)
5858 /// and their dependencies as runtime dependencies while in reality they are build-time dependencies.
59- ///
60- /// ### 1
61- ///
59+ ///
60+ /// ### 1
61+ ///
6262 /// Same as 0, but correctly records proc-macros and their dependencies as build-time dependencies.
63- ///
63+ ///
6464 /// May still include slightly more dependencies than are actually used, especially in workspaces.
65- ///
65+ ///
6666 /// ### 8
67- ///
67+ ///
6868 /// Generated using Cargo's [SBOM precursor](https://doc.rust-lang.org/cargo/reference/unstable.html#sbom) as the data source.
69- ///
69+ ///
7070 /// This data is highly accurate, but as of Rust v1.88 can only be generated using a nightly build of Cargo.
7171 #[ serde( default ) ]
7272 #[ serde( skip_serializing_if = "is_default" ) ]
0 commit comments