Skip to content

Commit f4e09f0

Browse files
committed
v0.57.0
1 parent b3217b9 commit f4e09f0

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
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

COMMIT.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ab0ee84eac9732e4e81e559c688846b4c1bd400a
1+
361af821ab169a98e9fc1db5d3a57978504ed379

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rustdoc-types"
3-
version = "0.56.0"
3+
version = "0.57.0"
44
edition = "2018"
55
license = "MIT OR Apache-2.0"
66
description = "Types for rustdoc's json output"

src/lib.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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`].

0 commit comments

Comments
 (0)