File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 99
99
</tbody >
100
100
</table >
101
101
102
+ <h4 >Metadata for custom builds</h4 >
103
+
104
+ <p >You can customize docs.rs builds by defining <code >[package.metadata.docs.rs]</code > table in your crates' `Cargo.toml`.</p >
105
+
106
+ <p >An example metadata:</p >
107
+
108
+ <pre ><code >[package]
109
+ name = "test"
110
+
111
+ [package.metadata.docs.rs]
112
+ features = [ "feature1", "feature2" ]
113
+ all-features = true
114
+ no-default-features = true
115
+ default-target = "x86_64-unknown-linux-gnu"
116
+ rustc-args = [ "--example-rustc-arg" ]
117
+ rustdoc-args = [ "--example-rustdoc-arg" ]
118
+ dependencies = [ "example-system-dependency" ]</pre ></code >
119
+
102
120
<h4 >Version</h4 >
103
121
<p >Currently running Docs.rs version is: <strong >{{ cratesfyi_version }} </strong >
104
122
You can’t perform that action at this time.
0 commit comments