File tree Expand file tree Collapse file tree 4 files changed +31
-1
lines changed Expand file tree Collapse file tree 4 files changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
8
8
## [ Unreleased]
9
9
10
+ ### Fixed
11
+
12
+ * Show macro expansion in the docs.rs generated rustdoc.
13
+ Since macros are used to generate trait implementations, this is useful to understand the exact generated code.
14
+
10
15
## [ 3.14.0] - 2025-06-30
11
16
12
17
### Added
Original file line number Diff line number Diff line change @@ -266,10 +266,13 @@ all-features = true
266
266
rustdoc-args = [
267
267
# Enable doc_cfg showing the required features.
268
268
" --cfg=docsrs" ,
269
+ " -Zunstable-options" ,
269
270
# Generate links to definition in rustdoc source code pages
270
271
# https://github.com/rust-lang/rust/pull/84176
271
- " -Zunstable-options" ,
272
272
" --generate-link-to-definition" ,
273
+ # Generate buttons to show macro expansions in the rustdoc output.
274
+ # https://github.com/rust-lang/rust/pull/137229
275
+ " --generate-macro-expansion" ,
273
276
# Link to the stable documentation for core/alloc/std/proc_macro even though docs.rs uses nightly.
274
277
# https://github.com/rust-lang/docs.rs/issues/506#issuecomment-2670501688
275
278
" --extern-html-root-url=core=https://doc.rust-lang.org" ,
Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
8
8
## [ Unreleased]
9
9
10
+ ### Fixed
11
+
12
+ * Show macro expansion in the docs.rs generated rustdoc.
13
+ Since macros are used to generate trait implementations, this is useful to understand the exact generated code.
14
+
10
15
## [ 3.14.0] - 2025-06-30
11
16
12
17
### Added
Original file line number Diff line number Diff line change @@ -61,6 +61,23 @@ version-sync = "0.9.1"
61
61
62
62
[package .metadata .docs .rs ]
63
63
all-features = true
64
+ rustdoc-args = [
65
+ # Enable doc_cfg showing the required features.
66
+ " --cfg=docsrs" ,
67
+ " -Zunstable-options" ,
68
+ # Generate links to definition in rustdoc source code pages
69
+ # https://github.com/rust-lang/rust/pull/84176
70
+ " --generate-link-to-definition" ,
71
+ # Generate buttons to show macro expansions in the rustdoc output.
72
+ # https://github.com/rust-lang/rust/pull/137229
73
+ " --generate-macro-expansion" ,
74
+ # Link to the stable documentation for core/alloc/std/proc_macro even though docs.rs uses nightly.
75
+ # https://github.com/rust-lang/docs.rs/issues/506#issuecomment-2670501688
76
+ " --extern-html-root-url=core=https://doc.rust-lang.org" ,
77
+ " --extern-html-root-url=alloc=https://doc.rust-lang.org" ,
78
+ " --extern-html-root-url=std=https://doc.rust-lang.org" ,
79
+ " --extern-html-root-url=proc_macro=https://doc.rust-lang.org" ,
80
+ ]
64
81
65
82
[package .metadata .release ]
66
83
pre-release-replacements = [
You can’t perform that action at this time.
0 commit comments