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 @@ -1636,13 +1636,6 @@ version = "0.11.15"
1636
1636
source = " registry+https://github.com/rust-lang/crates.io-index"
1637
1637
checksum = " 92c245af8786f6ac35f95ca14feca9119e71339aaab41e878e7cdd655c97e9e5"
1638
1638
1639
- [[package ]]
1640
- name = " json-types"
1641
- version = " 0.1.0"
1642
- dependencies = [
1643
- " serde" ,
1644
- ]
1645
-
1646
1639
[[package ]]
1647
1640
name = " jsondocck"
1648
1641
version = " 0.1.0"
@@ -4394,17 +4387,24 @@ version = "0.0.0"
4394
4387
dependencies = [
4395
4388
" expect-test" ,
4396
4389
" itertools 0.9.0" ,
4397
- " json-types" ,
4398
4390
" minifier" ,
4399
4391
" pulldown-cmark 0.8.0" ,
4400
4392
" regex" ,
4401
4393
" rustc-rayon" ,
4394
+ " rustdoc-json-types" ,
4402
4395
" serde" ,
4403
4396
" serde_json" ,
4404
4397
" smallvec 1.4.2" ,
4405
4398
" tempfile" ,
4406
4399
]
4407
4400
4401
+ [[package ]]
4402
+ name = " rustdoc-json-types"
4403
+ version = " 0.1.0"
4404
+ dependencies = [
4405
+ " serde" ,
4406
+ ]
4407
+
4408
4408
[[package ]]
4409
4409
name = " rustdoc-themes"
4410
4410
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