File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -254,3 +254,15 @@ If both `--playground-url` and `--markdown-playground-url` are present when rend
254
254
Markdown file, the URL given to ` --markdown-playground-url ` will take precedence. If both
255
255
` --playground-url ` and ` #![doc(html_playground_url = "url")] ` are present when rendering crate docs,
256
256
the attribute will take precedence.
257
+
258
+ ### ` --crate-version ` : control the crate version
259
+
260
+ Using this flag looks like this:
261
+
262
+ ``` bash
263
+ $ rustdoc src/lib.rs -Z unstable-options --crate-version 1.3.37
264
+ ```
265
+
266
+ When ` rustdoc ` receives this flag, it will print an extra "Version (version)" into the sidebar of
267
+ the crate root's docs. You can use this flag to differentiate between different versions of your
268
+ library's documentation.
You can’t perform that action at this time.
0 commit comments