-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Add relnotes-api-list
in-tree tool
#143053
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
+1,659
−30
Draft
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f29f073
add support for ./x check src/tools/linkchecker
pietroalbini c745614
bump linkchecker to edition 2024
pietroalbini 984926e
add an argument parser to linkchecker
pietroalbini 6693b39
add --link-targets-dir flag to linkchecker
pietroalbini bda55c8
add relnotes-api-list tool
pietroalbini File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
src/tools/linkchecker/Cargo.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[package] | ||
name = "linkchecker" | ||
version = "0.1.0" | ||
edition = "2021" | ||
edition = "2024" | ||
|
||
[[bin]] | ||
name = "linkchecker" | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
src/tools/relnotes-api-list/Cargo.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[package] | ||
name = "relnotes-api-list" | ||
version = "0.1.0" | ||
edition = "2024" | ||
|
||
[dependencies] | ||
anyhow = "1" | ||
serde = { version = "1", features = ["derive"] } | ||
serde_json = "1" | ||
rustdoc-json-types = { path = "../../rustdoc-json-types" } | ||
tempfile = "3.20.0" |
17 changes: 17 additions & 0 deletions
src/tools/relnotes-api-list/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# API list generator for the release notes | ||
|
||
Rust's [release notes] include a "Stabilized APIs" section for each | ||
release, listing all APIs that became stable each release. This tool supports | ||
the creation of that section by generating a JSON file containing a concise | ||
representation of the standard library API. The [relnotes tool] will then | ||
compare the JSON files of two releases to generate the section. | ||
|
||
The tool is executed by CI and produces the `relnotes-api-list-$target.json` | ||
dist artifact. You can also run the tool locally with: | ||
|
||
``` | ||
./x dist relnotes-api-list | ||
``` | ||
|
||
[release notes]: https://doc.rust-lang.org/stable/releases.html | ||
[relnotes tool]: https://github.com/rust-lang/relnotes |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.