|
1 | | -//! Tests for inheriting Cargo.toml fields with { workspace = true } |
| 1 | +//! Tests for inheriting Cargo.toml fields with field.workspace = true |
2 | 2 | use cargo_test_support::registry::{Dependency, Package}; |
3 | 3 | use cargo_test_support::{ |
4 | 4 | basic_lib_manifest, basic_manifest, git, path2url, paths, project, publish, registry, |
@@ -119,24 +119,24 @@ fn inherit_own_workspace_fields() { |
119 | 119 | "Cargo.toml", |
120 | 120 | r#" |
121 | 121 | cargo-features = ["workspace-inheritance"] |
122 | | - badges = { workspace = true } |
| 122 | + badges.workspace = true |
123 | 123 |
|
124 | 124 | [package] |
125 | 125 | name = "foo" |
126 | | - version = { workspace = true } |
127 | | - authors = { workspace = true } |
128 | | - description = { workspace = true } |
129 | | - documentation = { workspace = true } |
130 | | - homepage = { workspace = true } |
131 | | - repository = { workspace = true } |
132 | | - license = { workspace = true } |
133 | | - keywords = { workspace = true } |
134 | | - categories = { workspace = true } |
135 | | - publish = { workspace = true } |
136 | | - edition = { workspace = true } |
137 | | - rust-version = { workspace = true } |
138 | | - exclude = { workspace = true } |
139 | | - include = { workspace = true } |
| 126 | + version.workspace = true |
| 127 | + authors.workspace = true |
| 128 | + description.workspace = true |
| 129 | + documentation.workspace = true |
| 130 | + homepage.workspace = true |
| 131 | + repository.workspace = true |
| 132 | + license.workspace = true |
| 133 | + keywords.workspace = true |
| 134 | + categories.workspace = true |
| 135 | + publish.workspace = true |
| 136 | + edition.workspace = true |
| 137 | + rust-version.workspace = true |
| 138 | + exclude.workspace = true |
| 139 | + include.workspace = true |
140 | 140 |
|
141 | 141 | [workspace] |
142 | 142 | members = [] |
@@ -501,7 +501,7 @@ fn inherit_from_own_undefined_field() { |
501 | 501 | name = "foo" |
502 | 502 | version = "1.2.5" |
503 | 503 | authors = ["rustaceans"] |
504 | | - description = { workspace = true } |
| 504 | + description.workspace = true |
505 | 505 |
|
506 | 506 | [workspace] |
507 | 507 | members = [] |
@@ -623,27 +623,27 @@ fn inherit_workspace_fields() { |
623 | 623 | .file( |
624 | 624 | "bar/Cargo.toml", |
625 | 625 | r#" |
626 | | - badges = { workspace = true } |
| 626 | + badges.workspace = true |
627 | 627 | cargo-features = ["workspace-inheritance"] |
628 | 628 | [package] |
629 | 629 | name = "bar" |
630 | 630 | workspace = ".." |
631 | | - version = { workspace = true } |
632 | | - authors = { workspace = true } |
633 | | - description = { workspace = true } |
634 | | - documentation = { workspace = true } |
635 | | - readme = { workspace = true } |
636 | | - homepage = { workspace = true } |
637 | | - repository = { workspace = true } |
638 | | - license = { workspace = true } |
639 | | - license-file = { workspace = true } |
640 | | - keywords = { workspace = true } |
641 | | - categories = { workspace = true } |
642 | | - publish = { workspace = true } |
643 | | - edition = { workspace = true } |
644 | | - rust-version = { workspace = true } |
645 | | - exclude = { workspace = true } |
646 | | - include = { workspace = true } |
| 631 | + version.workspace = true |
| 632 | + authors.workspace = true |
| 633 | + description.workspace = true |
| 634 | + documentation.workspace = true |
| 635 | + readme.workspace = true |
| 636 | + homepage.workspace = true |
| 637 | + repository.workspace = true |
| 638 | + license.workspace = true |
| 639 | + license-file.workspace = true |
| 640 | + keywords.workspace = true |
| 641 | + categories.workspace = true |
| 642 | + publish.workspace = true |
| 643 | + edition.workspace = true |
| 644 | + rust-version.workspace = true |
| 645 | + exclude.workspace = true |
| 646 | + include.workspace = true |
647 | 647 | "#, |
648 | 648 | ) |
649 | 649 | .file("LICENSE", "license") |
@@ -1298,7 +1298,7 @@ fn error_no_root_workspace() { |
1298 | 1298 | workspace = ".." |
1299 | 1299 | version = "1.2.3" |
1300 | 1300 | authors = ["rustaceans"] |
1301 | | - description = { workspace = true } |
| 1301 | + description.workspace = true |
1302 | 1302 | "#, |
1303 | 1303 | ) |
1304 | 1304 | .file("src/main.rs", "fn main() {}") |
@@ -1385,7 +1385,7 @@ fn workspace_inheritance_not_enabled() { |
1385 | 1385 | name = "foo" |
1386 | 1386 | version = "1.2.5" |
1387 | 1387 | authors = ["rustaceans"] |
1388 | | - description = { workspace = true } |
| 1388 | + description.workspace = true |
1389 | 1389 |
|
1390 | 1390 | [workspace] |
1391 | 1391 | members = [] |
@@ -1431,7 +1431,7 @@ fn nightly_required() { |
1431 | 1431 | name = "foo" |
1432 | 1432 | version = "1.2.5" |
1433 | 1433 | authors = ["rustaceans"] |
1434 | | - description = { workspace = true } |
| 1434 | + description.workspace = true |
1435 | 1435 |
|
1436 | 1436 | [workspace] |
1437 | 1437 | members = [] |
|
0 commit comments