@@ -180,10 +180,10 @@ version = { workspace = true }
180
180
This directive tells Cargo that the version of ` foo ` is the same as the
181
181
` workspace.version ` directive found in the workspace manifest. This means that
182
182
in addition to a new ` [workspace.dependencies] ` section, package metadata keys
183
- can now also be defined inside of a ` [workspace] ` section:
183
+ can now also be defined inside of a ` [workspace.package ] ` section:
184
184
185
185
``` toml
186
- [workspace ]
186
+ [workspace . package ]
187
187
version = " 0.25.2"
188
188
```
189
189
@@ -233,11 +233,11 @@ Dependencies declared in `[workspace.dependencies]` have no meaning as-is. They
233
233
do not affect the build nor do they force packages to depend on those
234
234
dependencies. This part comes later below.
235
235
236
- The ` [workspace] ` section will also allow the definition of a number of keys
236
+ The ` [workspace.package ] ` section will also allow the definition of a number of keys
237
237
also defined in ` [package] ` today, namely:
238
238
239
239
``` toml
240
- [workspace ]
240
+ [workspace . package ]
241
241
version = " 1.2.3"
242
242
authors = [" Nice Folks" ]
243
243
description = " ..."
@@ -252,11 +252,11 @@ categories = ["development-tools"]
252
252
publish = false
253
253
edition = " 2018"
254
254
255
- [workspace .badges ]
255
+ [workspace .package . badges ]
256
256
# ...
257
257
```
258
258
259
- Each of these keys have no meaning in a ` [workspace] ` table yet, but will have
259
+ Each of these keys have no meaning in a ` [workspace.package ] ` table yet, but will have
260
260
meaning when they're assigned to crates internally. That part comes later though
261
261
in this design! Note that the format and accepted values for these keys are the
262
262
same as the ` [package] ` section of ` Cargo.toml ` .
@@ -294,7 +294,7 @@ This directive indicates that the license of `foo` is the same as
294
294
` workspace.license ` . If ` workspace.license ` isn't defined then this generates an
295
295
error.
296
296
297
- The following keys in ` [package] ` can be inherited from ` [workspace] ` with the
297
+ The following keys in ` [package] ` can be inherited from ` [workspace.package ] ` with the
298
298
new ` workspace = true ` directive.
299
299
300
300
``` toml
@@ -589,7 +589,7 @@ ways this could happen.
589
589
## Inheriting metadata from other packages
590
590
591
591
One possible extension of this RFC is for metadata to not only be inheritable
592
- from the ` [workspace] ` table but also from other packages. For example a
592
+ from the ` [workspace.package ] ` table but also from other packages. For example a
593
593
scenario seen in the wild is that some repositories have multiple "cliques" of
594
594
crates which are all versioned as a unit. In this scenario one "clique" can have
595
595
its version directives deduplicated with this proposal, but not multiple ones.
0 commit comments