@@ -165,6 +165,7 @@ crate-type = ["lib", "staticlib"]
165165 }
166166 ],
167167 "workspace_members": ["foo 0.5.0 (path+file:[..]foo)"],
168+ "workspace_default_members": ["foo 0.5.0 (path+file:[..]foo)"],
168169 "resolve": {
169170 "nodes": [
170171 {
@@ -258,6 +259,7 @@ optional_feat = []
258259 }
259260 ],
260261 "workspace_members": ["foo 0.5.0 (path+file:[..]foo)"],
262+ "workspace_default_members": ["foo 0.5.0 (path+file:[..]foo)"],
261263 "resolve": {
262264 "nodes": [
263265 {
@@ -588,6 +590,9 @@ fn cargo_metadata_with_deps_and_version() {
588590 "workspace_members": [
589591 "foo 0.5.0 (path+file:[..]foo)"
590592 ],
593+ "workspace_default_members": [
594+ "foo 0.5.0 (path+file:[..]foo)"
595+ ],
591596 "workspace_root": "[..]/foo",
592597 "metadata": null
593598 }"# ,
@@ -669,6 +674,9 @@ name = "ex"
669674 "workspace_members": [
670675 "foo 0.1.0 (path+file:[..]foo)"
671676 ],
677+ "workspace_default_members": [
678+ "foo 0.1.0 (path+file:[..]foo)"
679+ ],
672680 "resolve": {
673681 "root": "foo 0.1.0 (path+file://[..]foo)",
674682 "nodes": [
@@ -763,6 +771,9 @@ crate-type = ["rlib", "dylib"]
763771 ],
764772 "workspace_members": [
765773 "foo 0.1.0 (path+file:[..]foo)"
774+ ],
775+ "workspace_default_members": [
776+ "foo 0.1.0 (path+file:[..]foo)"
766777 ],
767778 "resolve": {
768779 "root": "foo 0.1.0 (path+file://[..]foo)",
@@ -893,6 +904,7 @@ fn workspace_metadata() {
893904 }
894905 ],
895906 "workspace_members": ["bar 0.5.0 (path+file:[..]bar)", "baz 0.5.0 (path+file:[..]baz)"],
907+ "workspace_default_members": ["bar 0.5.0 (path+file:[..]bar)", "baz 0.5.0 (path+file:[..]baz)"],
896908 "resolve": {
897909 "nodes": [
898910 {
@@ -1124,6 +1136,11 @@ fn workspace_metadata_with_dependencies_no_deps() {
11241136 "artifact 0.5.0 (path+file:[..]/foo/artifact)",
11251137 "baz 0.5.0 (path+file:[..]baz)"
11261138 ],
1139+ "workspace_default_members": [
1140+ "bar 0.5.0 (path+file:[..]bar)",
1141+ "artifact 0.5.0 (path+file:[..]/foo/artifact)",
1142+ "baz 0.5.0 (path+file:[..]baz)"
1143+ ],
11271144 "resolve": null,
11281145 "target_directory": "[..]foo/target",
11291146 "version": 1,
@@ -1756,6 +1773,12 @@ fn workspace_metadata_with_dependencies_and_resolve() {
17561773 "bin-only-artifact 0.5.0 (path+file://[..]/foo/bin-only-artifact)",
17571774 "non-artifact 0.5.0 (path+file://[..]/foo/non-artifact)"
17581775 ],
1776+ "workspace_default_members": [
1777+ "bar 0.5.0 (path+file://[..]/foo/bar)",
1778+ "artifact 0.5.0 (path+file://[..]/foo/artifact)",
1779+ "bin-only-artifact 0.5.0 (path+file://[..]/foo/bin-only-artifact)",
1780+ "non-artifact 0.5.0 (path+file://[..]/foo/non-artifact)"
1781+ ],
17591782 "workspace_root": "[..]/foo"
17601783 }
17611784 "# ,
@@ -2149,6 +2172,7 @@ fn package_metadata() {
21492172 }
21502173 ],
21512174 "workspace_members": ["foo[..]"],
2175+ "workspace_default_members": ["foo[..]"],
21522176 "resolve": null,
21532177 "target_directory": "[..]foo/target",
21542178 "version": 1,
@@ -2224,6 +2248,7 @@ fn package_publish() {
22242248 }
22252249 ],
22262250 "workspace_members": ["foo[..]"],
2251+ "workspace_default_members": ["foo[..]"],
22272252 "resolve": null,
22282253 "target_directory": "[..]foo/target",
22292254 "version": 1,
@@ -2319,7 +2344,9 @@ fn cargo_metadata_path_to_cargo_toml_project() {
23192344 "workspace_members": [
23202345 "bar 0.5.0 (path+file:[..])"
23212346 ],
2322- "workspace_default_members": [],
2347+ "workspace_default_members": [
2348+ "bar 0.5.0 (path+file:[..])"
2349+ ],
23232350 "workspace_root": "[..]",
23242351 "metadata": null
23252352 }
@@ -2408,6 +2435,9 @@ fn package_edition_2018() {
24082435 "workspace_members": [
24092436 "foo 0.1.0 (path+file:[..])"
24102437 ],
2438+ "workspace_default_members": [
2439+ "foo 0.1.0 (path+file:[..])"
2440+ ],
24112441 "workspace_root": "[..]",
24122442 "metadata": null
24132443 }
@@ -2556,6 +2586,9 @@ fn target_edition_2018() {
25562586 "workspace_members": [
25572587 "foo 0.1.0 (path+file:[..])"
25582588 ],
2589+ "workspace_default_members": [
2590+ "foo 0.1.0 (path+file:[..])"
2591+ ],
25592592 "workspace_root": "[..]",
25602593 "metadata": null
25612594 }
@@ -2792,6 +2825,9 @@ fn rename_dependency() {
27922825 "workspace_members": [
27932826 "foo 0.0.1[..]"
27942827 ],
2828+ "workspace_default_members": [
2829+ "foo 0.0.1[..]"
2830+ ],
27952831 "workspace_root": "[..]",
27962832 "metadata": null
27972833}"# ,
@@ -2892,6 +2928,9 @@ fn metadata_links() {
28922928 "workspace_members": [
28932929 "foo 0.5.0 [..]"
28942930 ],
2931+ "workspace_default_members": [
2932+ "foo 0.5.0 [..]"
2933+ ],
28952934 "workspace_root": "[..]/foo",
28962935 "metadata": null
28972936 }
@@ -2982,6 +3021,9 @@ fn deps_with_bin_only() {
29823021 "workspace_members": [
29833022 "foo 0.1.0 ([..])"
29843023 ],
3024+ "workspace_default_members": [
3025+ "foo 0.1.0 ([..])"
3026+ ],
29853027 "resolve": {
29863028 "nodes": [
29873029 {
@@ -3361,6 +3403,9 @@ fn filter_platform() {
33613403 "workspace_members": [
33623404 "foo 0.1.0 (path+file:[..]foo)"
33633405 ],
3406+ "workspace_default_members": [
3407+ "foo 0.1.0 (path+file:[..]foo)"
3408+ ],
33643409 "resolve": {
33653410 "nodes": [
33663411 {
@@ -3480,6 +3525,7 @@ fn filter_platform() {
34803525 $NORMAL_DEP
34813526 ],
34823527 "workspace_members": "{...}",
3528+ "workspace_default_members": "{...}",
34833529 "resolve": {
34843530 "nodes": [
34853531 {
@@ -3561,6 +3607,7 @@ fn filter_platform() {
35613607 $NORMAL_DEP
35623608 ],
35633609 "workspace_members": "{...}",
3610+ "workspace_default_members": "{...}",
35643611 "resolve": {
35653612 "nodes": [
35663613 {
@@ -3645,6 +3692,7 @@ fn filter_platform() {
36453692 $NORMAL_DEP
36463693 ],
36473694 "workspace_members": "{...}",
3695+ "workspace_default_members": "{...}",
36483696 "resolve": {
36493697 "nodes": [
36503698 {
@@ -3759,6 +3807,7 @@ fn dep_kinds() {
37593807 {
37603808 "packages": "{...}",
37613809 "workspace_members": "{...}",
3810+ "workspace_default_members": "{...}",
37623811 "target_directory": "{...}",
37633812 "version": 1,
37643813 "workspace_root": "{...}",
@@ -3874,6 +3923,7 @@ fn dep_kinds_workspace() {
38743923 {
38753924 "packages": "{...}",
38763925 "workspace_members": "{...}",
3926+ "workspace_default_members": "{...}",
38773927 "target_directory": "[..]/foo/target",
38783928 "version": 1,
38793929 "workspace_root": "[..]/foo",
@@ -4187,6 +4237,11 @@ fn workspace_metadata_with_dependencies_no_deps_artifact() {
41874237 "artifact 0.5.0 (path+file://[..]/foo/artifact)",
41884238 "baz 0.5.0 (path+file://[..]/foo/baz)"
41894239 ],
4240+ "workspace_default_members": [
4241+ "bar 0.5.0 (path+file://[..]/foo/bar)",
4242+ "artifact 0.5.0 (path+file://[..]/foo/artifact)",
4243+ "baz 0.5.0 (path+file://[..]/foo/baz)"
4244+ ],
41904245 "workspace_root": "[..]/foo"
41914246 }
41924247"# ,
0 commit comments