From 74e1dcf7e7091759af731c3c5e2b433ae51dc5f5 Mon Sep 17 00:00:00 2001 From: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com> Date: Thu, 17 Oct 2024 22:38:38 -0400 Subject: [PATCH] Add support for rustdoc JSON format v36. (#979) --- Cargo.lock | 26 ++++++++++++++++++++++++-- Cargo.toml | 2 +- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 761c688a..784821f1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2930,6 +2930,15 @@ dependencies = [ "serde", ] +[[package]] +name = "rustdoc-types" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0958527c2f4e8ff8b64e067bda402306946efc96f9b69f9f691b146f4b17f930" +dependencies = [ + "serde", +] + [[package]] name = "rustix" version = "0.38.37" @@ -3587,6 +3596,18 @@ dependencies = [ "trustfall", ] +[[package]] +name = "trustfall-rustdoc-adapter" +version = "36.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bf8370bfe8e00fde814e39a8fc6f5c8631fc6d49952fd7bee96e05698653add" +dependencies = [ + "rayon", + "rustc-hash", + "rustdoc-types 0.32.0", + "trustfall", +] + [[package]] name = "trustfall_core" version = "0.7.1" @@ -3617,9 +3638,9 @@ dependencies = [ [[package]] name = "trustfall_rustdoc" -version = "0.16.3" +version = "0.16.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f1a19f020aadf38395e786ee94e38bcc3812b29bc9a0e1064bffb51d609f788" +checksum = "22950af8510bd41a2ddf504f0f357b71e699c0957d92f60dc16d0b6ffcfd2b42" dependencies = [ "anyhow", "serde", @@ -3632,6 +3653,7 @@ dependencies = [ "trustfall-rustdoc-adapter 33.1.10", "trustfall-rustdoc-adapter 34.0.3", "trustfall-rustdoc-adapter 35.0.0", + "trustfall-rustdoc-adapter 36.0.0", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 104e546f..8b2f4c04 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ exclude = [".github/", "brand/", "scripts/", "test_crates/", "test_outputs/", "t [dependencies] trustfall = "0.7.1" -trustfall_rustdoc = { version = "0.16.2", default-features = false, features = ["v28", "v29", "v30", "v32", "v33", "v34", "v35", "rayon", "rustc-hash"] } +trustfall_rustdoc = { version = "0.16.4", default-features = false, features = ["v28", "v29", "v30", "v32", "v33", "v34", "v35", "v36", "rayon", "rustc-hash"] } clap = { version = "4.5.17", features = ["derive", "cargo"] } serde_json = "1.0.128" anyhow = "1.0.89"