File tree Expand file tree Collapse file tree 4 files changed +20
-4
lines changed Expand file tree Collapse file tree 4 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 1+ <a name =" v0.57.0 " ></a >
2+ # [ v0.57.0] ( https://github.com/rust-lang/rustdoc-types/releases/tag/v0.57.0 ) - 2025-11-22
3+
4+ ** Breaking Change** : Add ` ExternalCrate::path ` field.
5+ This can be used to enable robust resolution of external crates.
6+
7+ - Format Version: 57
8+ - Upstream Commit: [ ` 361af821ab169a98e9fc1db5d3a57978504ed379 ` ] ( https://github.com/rust-lang/rust/commit/361af821ab169a98e9fc1db5d3a57978504ed379 )
9+ - Diff: [ v0.56.0...v0.57.0] ( https://github.com/rust-lang/rustdoc-types/compare/v0.56.0...v0.57.0 )
10+
111<a name =" v0.56.0 " ></a >
212# [ v0.56.0] ( https://github.com/rust-lang/rustdoc-types/releases/tag/v0.56.0 ) - 2025-09-05
313
Original file line number Diff line number Diff line change 1- ab0ee84eac9732e4e81e559c688846b4c1bd400a
1+ 361af821ab169a98e9fc1db5d3a57978504ed379
Original file line number Diff line number Diff line change 11[package ]
22name = " rustdoc-types"
3- version = " 0.56 .0"
3+ version = " 0.57 .0"
44edition = " 2018"
55license = " MIT OR Apache-2.0"
66description = " Types for rustdoc's json output"
Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ use serde_derive::{Deserialize, Serialize};
3636// will instead cause conflicts. See #94591 for more. (This paragraph and the "Latest feature" line
3737// are deliberately not in a doc comment, because they need not be in public docs.)
3838//
39- // Latest feature: Add `ItemKind::Attribute `.
40- pub const FORMAT_VERSION : u32 = 56 ;
39+ // Latest feature: Add `ExternCrate::path `.
40+ pub const FORMAT_VERSION : u32 = 57 ;
4141
4242/// The root of the emitted JSON blob.
4343///
@@ -134,6 +134,12 @@ pub struct ExternalCrate {
134134 pub name : String ,
135135 /// The root URL at which the crate's documentation lives.
136136 pub html_root_url : Option < String > ,
137+
138+ /// A path from where this crate was loaded.
139+ ///
140+ /// This will typically be a `.rlib` or `.rmeta`. It can be used to determine which crate
141+ /// this was in terms of whatever build-system invoked rustc.
142+ pub path : PathBuf ,
137143}
138144
139145/// Information about an external (not defined in the local crate) [`Item`].
You can’t perform that action at this time.
0 commit comments