25 breaking releases

new 0.28.0 Jul 18, 2024
0.26.0 Jun 6, 2024
0.24.0 Dec 24, 2023
0.23.0 Aug 24, 2023
0.1.0 Dec 6, 2020

#118 in Rust patterns

Download history 11680/week @ 2024-03-30 13753/week @ 2024-04-06 17840/week @ 2024-04-13 15825/week @ 2024-04-20 11123/week @ 2024-04-27 10896/week @ 2024-05-04 10624/week @ 2024-05-11 11728/week @ 2024-05-18 14936/week @ 2024-05-25 13097/week @ 2024-06-01 15101/week @ 2024-06-08 12913/week @ 2024-06-15 13347/week @ 2024-06-22 14489/week @ 2024-06-29 14820/week @ 2024-07-06 12081/week @ 2024-07-13

57,055 downloads per month
Used in 39 crates (18 directly)

MIT/Apache

30KB
546 lines

Rustdoc Types

Docs

This crate contains the type definiions for rustdoc's currently-unstable --output-format=json flag. They can be deserialized with serde-json from the output of cargo +nightly rustdoc -- --output-format json -Z unstable-options:

let json_string = std::fs::read_to_string("./target/doc/rustdoc_types.json")?;
let krate: rustdoc_types::Crate = serde_json::from_str(&json_string)?;

println!("the index has {} items", krate.index.len());

Contributing

This repo is a reexport of rustdoc-json-types from the rust repo. Any change to the contents of src/, should be sent to rust-lang/rust, via their normal contibution procudures. Once reviewed and merged there, the change will be pulled to this repo and published to crates.io.

Release Procedure

  1. Run ./update.sh to pull code from upstream
  2. Run cargo test
  3. Run ./clgen.sh <old_version> <new_version>
  4. Follow printed instructions to commit and push.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0.4–1MB
~23K SLoC