File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change 127
127
</tbody >
128
128
</table >
129
129
130
- <h4 > Metadata for custom builds</h4 >
130
+ <h4 id = " metadata " >< a href = " #metadata " > Metadata for custom builds</ a > </h4 >
131
131
132
132
<p >You can customize docs.rs builds by defining <code >[package.metadata.docs.rs]</code > table in your crates' `Cargo.toml`.</p >
133
133
134
- <p >An example metadata :</p >
134
+ <p >The available configuration flags you can customize are :</p >
135
135
136
136
<pre ><code >[package]
137
137
name = "test"
138
138
139
139
[package.metadata.docs.rs]
140
+
141
+ # Features to pass to Cargo (default: none)
140
142
features = [ "feature1", "feature2" ]
143
+
144
+ # Whether to pass `--all-features` to Cargo (default: false)
141
145
all-features = true
146
+
147
+ # Whether to pass `--no-default-features` to Cargo (default: false)
142
148
no-default-features = true
149
+
150
+ # Target to test build on, used as the default landing page (default: "x86_64-unknown-linux-gnu")
151
+ #
152
+ # Available targets:
153
+ # - x86_64-unknown-linux-gnu
154
+ # - x86_64-apple-darwin
155
+ # - x86_64-pc-windows-msvc
156
+ # - i686-unknown-linux-gnu
157
+ # - i686-apple-darwin
158
+ # - i686-pc-windows-msvc
143
159
default-target = "x86_64-unknown-linux-gnu"
160
+
161
+ # Additional `RUSTFLAGS` to set (default: none)
144
162
rustc-args = [ "--example-rustc-arg" ]
163
+
164
+ # Additional `RUSTDOCFLAGS` to set (default: none)
145
165
rustdoc-args = [ "--example-rustdoc-arg" ]</pre ></code >
146
166
147
167
<h4 >Version</h4 >
You can’t perform that action at this time.
0 commit comments