File tree 6 files changed +24
-12
lines changed 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"
1637
1637
source = " registry+https://github.com/rust-lang/crates.io-index"
1638
1638
checksum = " 92c245af8786f6ac35f95ca14feca9119e71339aaab41e878e7cdd655c97e9e5"
1639
1639
1640
- [[package ]]
1641
- name = " json-types"
1642
- version = " 0.1.0"
1643
- dependencies = [
1644
- " serde" ,
1645
- ]
1646
-
1647
1640
[[package ]]
1648
1641
name = " jsondocck"
1649
1642
version = " 0.1.0"
@@ -4393,17 +4386,24 @@ version = "0.0.0"
4393
4386
dependencies = [
4394
4387
" expect-test" ,
4395
4388
" itertools 0.9.0" ,
4396
- " json-types" ,
4397
4389
" minifier" ,
4398
4390
" pulldown-cmark 0.8.0" ,
4399
4391
" regex" ,
4400
4392
" rustc-rayon" ,
4393
+ " rustdoc-json-types" ,
4401
4394
" serde" ,
4402
4395
" serde_json" ,
4403
4396
" smallvec 1.4.2" ,
4404
4397
" tempfile" ,
4405
4398
]
4406
4399
4400
+ [[package ]]
4401
+ name = " rustdoc-json-types"
4402
+ version = " 0.1.0"
4403
+ dependencies = [
4404
+ " serde" ,
4405
+ ]
4406
+
4407
4407
[[package ]]
4408
4408
name = " rustdoc-themes"
4409
4409
version = " 0.1.0"
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ smallvec = "1.0"
17
17
tempfile = " 3"
18
18
itertools = " 0.9"
19
19
regex = " 1"
20
- json-types = { path = " ../rustdoc-json-types" }
20
+ rustdoc- json-types = { path = " ../rustdoc-json-types" }
21
21
22
22
[dev-dependencies ]
23
23
expect-test = " 1.0"
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use rustc_hir::def::CtorKind;
9
9
use rustc_span:: def_id:: { DefId , CRATE_DEF_INDEX } ;
10
10
use rustc_span:: Pos ;
11
11
12
- use json_types :: * ;
12
+ use rustdoc_json_types :: * ;
13
13
14
14
use crate :: clean;
15
15
use crate :: formats:: item_type:: ItemType ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ use rustc_middle::ty::TyCtxt;
16
16
use rustc_session:: Session ;
17
17
use rustc_span:: edition:: Edition ;
18
18
19
- use json_types as types;
19
+ use rustdoc_json_types as types;
20
20
21
21
use crate :: clean;
22
22
use crate :: config:: { RenderInfo , RenderOptions } ;
Original file line number Diff line number Diff line change 1
1
[package ]
2
- name = " json-types"
2
+ name = " rustdoc- json-types"
3
3
version = " 0.1.0"
4
4
authors = [" The Rust Project Developers" ]
5
5
edition = " 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