File tree Expand file tree Collapse file tree 6 files changed +24
-12
lines changed Expand file tree Collapse file tree 6 files changed +24
-12
lines changed Original file line number Diff line number Diff line change @@ -1637,13 +1637,6 @@ version = "0.11.15"
16371637source = " registry+https://github.com/rust-lang/crates.io-index"
16381638checksum = " 92c245af8786f6ac35f95ca14feca9119e71339aaab41e878e7cdd655c97e9e5"
16391639
1640- [[package ]]
1641- name = " json-types"
1642- version = " 0.1.0"
1643- dependencies = [
1644- " serde" ,
1645- ]
1646-
16471640[[package ]]
16481641name = " jsondocck"
16491642version = " 0.1.0"
@@ -4393,17 +4386,24 @@ version = "0.0.0"
43934386dependencies = [
43944387 " expect-test" ,
43954388 " itertools 0.9.0" ,
4396- " json-types" ,
43974389 " minifier" ,
43984390 " pulldown-cmark 0.8.0" ,
43994391 " regex" ,
44004392 " rustc-rayon" ,
4393+ " rustdoc-json-types" ,
44014394 " serde" ,
44024395 " serde_json" ,
44034396 " smallvec 1.4.2" ,
44044397 " tempfile" ,
44054398]
44064399
4400+ [[package ]]
4401+ name = " rustdoc-json-types"
4402+ version = " 0.1.0"
4403+ dependencies = [
4404+ " serde" ,
4405+ ]
4406+
44074407[[package ]]
44084408name = " rustdoc-themes"
44094409version = " 0.1.0"
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ smallvec = "1.0"
1717tempfile = " 3"
1818itertools = " 0.9"
1919regex = " 1"
20- json-types = { path = " ../rustdoc-json-types" }
20+ rustdoc- json-types = { path = " ../rustdoc-json-types" }
2121
2222[dev-dependencies ]
2323expect-test = " 1.0"
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use rustc_hir::def::CtorKind;
99use rustc_span:: def_id:: { DefId , CRATE_DEF_INDEX } ;
1010use rustc_span:: Pos ;
1111
12- use json_types :: * ;
12+ use rustdoc_json_types :: * ;
1313
1414use crate :: clean;
1515use crate :: formats:: item_type:: ItemType ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ use rustc_middle::ty::TyCtxt;
1616use rustc_session:: Session ;
1717use rustc_span:: edition:: Edition ;
1818
19- use json_types as types;
19+ use rustdoc_json_types as types;
2020
2121use crate :: clean;
2222use crate :: config:: { RenderInfo , RenderOptions } ;
Original file line number Diff line number Diff line change 11[package ]
2- name = " json-types"
2+ name = " rustdoc- json-types"
33version = " 0.1.0"
44authors = [" The Rust Project Developers" ]
55edition = " 2018"
Original file line number Diff line number Diff line change 1+ # Rustdoc JSON Types
2+
3+ This crate exposes the Rustdoc JSON API as a set of types with serde implementations.
4+ These types are part of the public interface of the rustdoc JSON output, and making them
5+ their own crate allows them to be versioned and distributed without having to depend on
6+ any rustc/rustdoc internals. This way, consumers can rely on this crate for both documentation
7+ of the output, and as a way to read the output easily, and its versioning is intended to
8+ follow semver guarantees about the version of the format. JSON format X will always be
9+ compatible with rustdoc-json-types version N.
10+
11+ Currently, this crate is only used by rustdoc itself. Upon the stabilization of
12+ rustdoc-json, it may be start to be distributed separately for consumers of the API.
You can’t perform that action at this time.
0 commit comments