Repository: Enselic/cargo-public-api (rust)

Issue:
Failure with `nightly-2023-05-24`
There is a failure (most likely caused by https://github.com/rust-lang/rust/pull/111427) and my usual workflow to fix it does not work, and I don't have time right now to investigate:

```console
$ rustup install --profile minimal nightly
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'

  nightly-x86_64-unknown-linux-gnu unchanged - rustc 1.71.0-nightly (5ea3f0ae0 2023-05-23)

info: checking for self-update

$ cargo run -- --manifest-path test-apis/example_api-v0.1.0/Cargo.toml
    Finished dev [unoptimized + debuginfo] target(s) in 0.02s
     Running `target/debug/cargo-public-api --manifest-path test-apis/example_api-v0.1.0/Cargo.toml`
 Documenting example_api v0.1.0 (/home/martin/src/cargo-public-api/test-apis/example_api-v0.1.0)
    Finished dev [unoptimized + debuginfo] target(s) in 0.09s
Error: Failed to parse rustdoc JSON at "/home/martin/src/cargo-public-api/test-apis/example_api-v0.1.0/target/doc/example_api.json".

This version of `cargo public-api` requires at least:

    nightly-2023-01-04

If you have that, it might be `cargo public-api` that is out of date. Try
to install the latest version with `cargo install cargo-public-api`. If the
issue remains, please report at

    https://github.com/Enselic/cargo-public-api/issues

Caused by:
    missing field `kind` at line 1 column 625

Pull request:
Support `nightly-2023-05-24` and later
Closes #427

Patch:
diff --git a/Cargo.lock b/Cargo.lock
index ff84a83..cf43fde 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -144,7 +144,7 @@ dependencies = [
 
 [[package]]
 name = "cargo-public-api"
-version = "0.29.1"
+version = "0.30.0"
 dependencies = [
  "anyhow",
  "assert_cmd",
@@ -769,7 +769,7 @@ dependencies = [
 
 [[package]]
 name = "public-api"
-version = "0.29.1"
+version = "0.30.0"
 dependencies = [
  "anyhow",
  "assert_cmd",
@@ -876,9 +876,9 @@ dependencies = [
 
 [[package]]
 name = "rustdoc-types"
-version = "0.21.0"
+version = "0.22.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "98758d8af20330e1af8baa7cde41a2853d637baf0d3744a238ee1c8490c0ffa5"
+checksum = "5c7a12c7506980eaac5c9851a04e90e0062eb4417aa188a512bf7a64a1ef290f"
 dependencies = [
  "serde",
 ]
diff --git a/Cargo.toml b/Cargo.toml
index 36aaa47..f511a33 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,5 +1,5 @@
 [workspace.package]
-version = "0.29.1"
+version = "0.30.0"
 
 [workspace]
 members = [
diff --git a/README.md b/README.md
index 6c54475..800538b 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@ Install the `cargo public-api` subcommand with a recent regular **stable** Rust
 $ cargo install --locked cargo-public-api
 ```
 
-Ensure **nightly-2023-01-04** or later is installed (does not need to be the active toolchain) so `cargo public-api` can build **rustdoc JSON** for you:
+Ensure **nightly-2023-05-24** or later is installed (does not need to be the active toolchain) so `cargo public-api` can build **rustdoc JSON** for you:
 
 ```console
 $ rustup install --profile minimal nightly
@@ -163,7 +163,8 @@ pub fn bat::PrettyPrinter::input_files<I, P>(&mut self, paths: I) -> &mut Self w
 
 | cargo-public-api | Understands the rustdoc JSON output of  |
 | ---------------- | --------------------------------------- |
-| 0.26.x — 0.29.x  | nightly-2023-01-04 —                    |
+| 0.30.x           | nightly-2023-05-24                      |
+| 0.26.x — 0.29.x  | nightly-2023-01-04 — nightly-2023-05-23 |
 | 0.20.x — 0.25.x  | nightly-2022-09-28 — nightly-2023-01-03 |
 | 0.19.x           | nightly-2022-09-08 — nightly-2022-09-27 |
 | 0.18.x           | nightly-2022-09-07                      |
diff --git a/cargo-public-api/Cargo.toml b/cargo-public-api/Cargo.toml
index 126fbc7..671a738 100644
--- a/cargo-public-api/Cargo.toml
+++ b/cargo-public-api/Cargo.toml
@@ -40,7 +40,7 @@ version = "0.8.5"
 
 [dependencies.public-api]
 path = "../public-api"
-version = "0.29.1"
+version = "0.30.0"
 
 [dev-dependencies.rustup-toolchain]
 path = "../rustup-toolchain"
diff --git a/public-api/Cargo.toml b/public-api/Cargo.toml
index f486c77..adfe577 100644
--- a/public-api/Cargo.toml
+++ b/public-api/Cargo.toml
@@ -23,7 +23,7 @@ features = ["unbounded_depth"]
 
 [dependencies.rustdoc-types]
 # path = "/Users/martin/src/rustdoc-types"
-version = "0.21.0"
+version = "0.22.0"
 
 [dev-dependencies]
 anyhow = "1.0.71"
diff --git a/public-api/src/lib.rs b/public-api/src/lib.rs
index a3172be..644f6a4 100644
--- a/public-api/src/lib.rs
+++ b/public-api/src/lib.rs
@@ -56,7 +56,7 @@ pub use public_item::PublicItem;
 /// The rustdoc JSON format is still changing, so every now and then we update
 /// this library to support the latest format. If you use this version of
 /// nightly or later, you should be fine.
-pub const MINIMUM_NIGHTLY_RUST_VERSION: &str = "nightly-2023-01-04";
+pub const MINIMUM_NIGHTLY_RUST_VERSION: &str = "nightly-2023-05-24";
 
 /// Deprecated, use [`MINIMUM_NIGHTLY_RUST_VERSION`] instead.
 #[deprecated(since = "0.27.4", note = "Use MINIMUM_NIGHTLY_RUST_VERSION instead")]
diff --git a/rustdoc-json/Cargo.toml b/rustdoc-json/Cargo.toml
index a4c01ed..17269ee 100644
--- a/rustdoc-json/Cargo.toml
+++ b/rustdoc-json/Cargo.toml
@@ -27,4 +27,4 @@ default-features = false
 
 [dev-dependencies.public-api]
 path = "../public-api"
-version = "0.29.1"
+version = "0.30.0"
diff --git a/rustup-toolchain/Cargo.toml b/rustup-toolchain/Cargo.toml
index b53530f..f6a9b6c 100644
--- a/rustup-toolchain/Cargo.toml
+++ b/rustup-toolchain/Cargo.toml
@@ -21,4 +21,4 @@ version = "0.8.5"
 
 [dev-dependencies.public-api]
 path = "../public-api"
-version = "0.29.1"
+version = "0.30.0"


Test patch:
diff --git a/repo-tests/Cargo.toml b/repo-tests/Cargo.toml
index 3208b79..3269a2d 100644
--- a/repo-tests/Cargo.toml
+++ b/repo-tests/Cargo.toml
@@ -7,5 +7,5 @@ license = "MIT"
 
 [dev-dependencies.public-api]
 path = "../public-api"
-version = "0.29.1"
+version = "0.30.0"