This is a tracking issue for the RFC: Deduplicate Cargo workspace information (rust-lang/rfcs#2906).
Documentation:
Steps:
Changes from RFC
- Not locking workspace dependencies, see alexchrichton's comment
- Not inserting a version into path dependencies when publishing, see epage's comment
- Changed the table
package fields inherit from, from workspace to workspace.package, see epage's comment
- Fields
- Explicitly not supporting
resolver, see epage's comment
- Supporting
edition which the RFC showed inconsistent status for
- Supporting
rust-version which is newer than the RFC
- Supporting
include and exclude which the RFC couldn't, see epage's comment
Unresolved questions:
- Do we stablize inheriting from
workspace.package and workspace.dependencies or do we switch which tables we use? see epage's comment
- Preferred documentation style: RFC uses
field = { workspace = true } but TOML allows field.workspace = true
- Is the performance good enough?
This is a tracking issue for the RFC: Deduplicate Cargo workspace information (rust-lang/rfcs#2906).
Documentation:
[workspace.package][workspace.dependencies]Steps:
instructions?)
Cargo.toml#10517)license-path, anddepednency.path#10538, Part 4 of RFC2906 - Add support for inheritingreadme#10548)rust-version(not in RFC), see epage's comment (Part 5 of RFC2906 - Add support for inheritingrust-version#10563)workspacetoworkspace.package, see epage's comment (Part 6 of RFC2906 - Switch the inheritance source fromworkspaceto… #10564)includeandexcludenow thatworkspace.packageis done, see epage's comment (Part 7 of RFC2906 - Add support for inheritingexcludeandinclude#10565)cargo addto put dependency in workspace and inherit it #10608InheritableFieldsin aLazyCellinside `… #10568)key = {worskspace = true}vskey.workspace = true)Changes from RFC
packagefields inherit from, fromworkspacetoworkspace.package, see epage's commentresolver, see epage's commenteditionwhich the RFC showed inconsistent status forrust-versionwhich is newer than the RFCincludeandexcludewhich the RFC couldn't, see epage's commentUnresolved questions:
workspace.packageandworkspace.dependenciesor do we switch which tables we use? see epage's commentfield = { workspace = true }but TOML allowsfield.workspace = true