@@ -95,6 +95,7 @@ Versioning](https://semver.org/), so make sure you follow some basic rules:
95
95
traits, fields, types, functions, methods or anything else.
96
96
* Use version numbers with three numeric parts such as 1.0.0 rather than 1.0.
97
97
98
+ <a id =" the-authors-field-optional " ></a >
98
99
#### The ` authors ` field
99
100
100
101
The ` authors ` field lists people or organizations that are considered the
@@ -106,6 +107,7 @@ brackets at the end of each author.
106
107
107
108
> ** Note** : [ crates.io] requires at least one author to be listed.
108
109
110
+ <a id =" the-edition-field-optional " ></a >
109
111
#### The ` edition ` field
110
112
111
113
You can opt in to a specific [ Rust Edition] for your package with the
@@ -137,6 +139,7 @@ description = "A short description of my package"
137
139
138
140
> ** Note** : [ crates.io] requires the ` description ` to be set.
139
141
142
+ <a id =" the-documentation-field-optional " ></a >
140
143
#### The ` documentation ` field
141
144
142
145
The ` documentation ` field specifies a URL to a website hosting the crate's
@@ -259,6 +262,7 @@ categories = ["command-line-utilities", "development-tools::cargo-plugins"]
259
262
> match one of the strings available at < https://crates.io/category_slugs > , and
260
263
> must match exactly.
261
264
265
+ <a id =" the-workspace--field-optional " ></a >
262
266
#### The ` workspace ` field
263
267
264
268
The ` workspace ` field can be used to configure the workspace that this package
@@ -280,6 +284,7 @@ table defined. That is, a crate cannot both be a root crate in a workspace
280
284
For more information, see the [ workspaces chapter] ( workspaces.md ) .
281
285
282
286
<a id =" package-build " ></a >
287
+ <a id =" the-build-field-optional " ></a >
283
288
#### The ` build ` field
284
289
285
290
The ` build ` field specifies a file in the package root which is a [ build
@@ -299,6 +304,7 @@ The default is `"build.rs"`, which loads the script from a file named
299
304
specify a path to a different file or ` build = false ` to disable automatic
300
305
detection of the build script.
301
306
307
+ <a id =" the-links-field-optional " ></a >
302
308
#### The ` links ` field
303
309
304
310
The ` links ` field specifies the name of a native library that is being linked
@@ -313,6 +319,7 @@ script guide.
313
319
links = " foo"
314
320
```
315
321
322
+ <a id =" the-exclude-and-include-fields-optional " ></a >
316
323
#### The ` exclude ` and ` include ` fields
317
324
318
325
You can explicitly specify that a set of file patterns should be ignored or
@@ -375,6 +382,7 @@ if any of those files change.
375
382
376
383
[ gitignore ] : https://git-scm.com/docs/gitignore
377
384
385
+ <a id =" the-publish--field-optional " ></a >
378
386
#### The ` publish ` field
379
387
380
388
The ` publish ` field can be used to prevent a package from being published to a
@@ -396,6 +404,7 @@ allowed to be published to.
396
404
publish = [" some-registry-name" ]
397
405
```
398
406
407
+ <a id =" the-metadata-table-optional " ></a >
399
408
#### The ` metadata ` table
400
409
401
410
Cargo by default will warn about unused keys in ` Cargo.toml ` to assist in
@@ -539,7 +548,7 @@ more detail.
539
548
" #integration-tests" : " cargo-targets.html#integration-tests" ,
540
549
" #configuring-a-target" : " cargo-targets.html#configuring-a-target" ,
541
550
" #target-auto-discovery" : " cargo-targets.html#target-auto-discovery" ,
542
- " #the-required-features-field" : " cargo-targets.html#the-required-features-field" ,
551
+ " #the-required-features-field-optional " : " cargo-targets.html#the-required-features-field" ,
543
552
" #building-dynamic-or-static-libraries" : " cargo-targets.html#the-crate-type-field" ,
544
553
" #the-workspace-section" : " workspaces.html#the-workspace-section" ,
545
554
" #virtual-manifest" : " workspaces.html" ,
0 commit comments