@@ -65,6 +65,7 @@ fn cargo_metadata_simple() {
65
65
}
66
66
],
67
67
"workspace_members": ["foo 0.5.0 (path+file:[..]foo)"],
68
+ "workspace_default_members": ["foo 0.5.0 (path+file:[..]foo)"],
68
69
"resolve": {
69
70
"nodes": [
70
71
{
@@ -164,6 +165,7 @@ crate-type = ["lib", "staticlib"]
164
165
}
165
166
],
166
167
"workspace_members": ["foo 0.5.0 (path+file:[..]foo)"],
168
+ "workspace_default_members": ["foo 0.5.0 (path+file:[..]foo)"],
167
169
"resolve": {
168
170
"nodes": [
169
171
{
@@ -257,6 +259,7 @@ optional_feat = []
257
259
}
258
260
],
259
261
"workspace_members": ["foo 0.5.0 (path+file:[..]foo)"],
262
+ "workspace_default_members": ["foo 0.5.0 (path+file:[..]foo)"],
260
263
"resolve": {
261
264
"nodes": [
262
265
{
@@ -587,6 +590,9 @@ fn cargo_metadata_with_deps_and_version() {
587
590
"workspace_members": [
588
591
"foo 0.5.0 (path+file:[..]foo)"
589
592
],
593
+ "workspace_default_members": [
594
+ "foo 0.5.0 (path+file:[..]foo)"
595
+ ],
590
596
"workspace_root": "[..]/foo",
591
597
"metadata": null
592
598
}"# ,
@@ -668,6 +674,9 @@ name = "ex"
668
674
"workspace_members": [
669
675
"foo 0.1.0 (path+file:[..]foo)"
670
676
],
677
+ "workspace_default_members": [
678
+ "foo 0.1.0 (path+file:[..]foo)"
679
+ ],
671
680
"resolve": {
672
681
"root": "foo 0.1.0 (path+file://[..]foo)",
673
682
"nodes": [
@@ -762,6 +771,9 @@ crate-type = ["rlib", "dylib"]
762
771
],
763
772
"workspace_members": [
764
773
"foo 0.1.0 (path+file:[..]foo)"
774
+ ],
775
+ "workspace_default_members": [
776
+ "foo 0.1.0 (path+file:[..]foo)"
765
777
],
766
778
"resolve": {
767
779
"root": "foo 0.1.0 (path+file://[..]foo)",
@@ -892,6 +904,7 @@ fn workspace_metadata() {
892
904
}
893
905
],
894
906
"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)"],
895
908
"resolve": {
896
909
"nodes": [
897
910
{
@@ -1123,6 +1136,11 @@ fn workspace_metadata_with_dependencies_no_deps() {
1123
1136
"artifact 0.5.0 (path+file:[..]/foo/artifact)",
1124
1137
"baz 0.5.0 (path+file:[..]baz)"
1125
1138
],
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
+ ],
1126
1144
"resolve": null,
1127
1145
"target_directory": "[..]foo/target",
1128
1146
"version": 1,
@@ -1755,6 +1773,12 @@ fn workspace_metadata_with_dependencies_and_resolve() {
1755
1773
"bin-only-artifact 0.5.0 (path+file://[..]/foo/bin-only-artifact)",
1756
1774
"non-artifact 0.5.0 (path+file://[..]/foo/non-artifact)"
1757
1775
],
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
+ ],
1758
1782
"workspace_root": "[..]/foo"
1759
1783
}
1760
1784
"# ,
@@ -1953,6 +1977,7 @@ const MANIFEST_OUTPUT: &str = r#"
1953
1977
"documentation": null
1954
1978
}],
1955
1979
"workspace_members": [ "foo 0.5.0 (path+file:[..]foo)" ],
1980
+ "workspace_default_members": [ "foo 0.5.0 (path+file:[..]foo)" ],
1956
1981
"resolve": null,
1957
1982
"target_directory": "[..]foo/target",
1958
1983
"version": 1,
@@ -2147,6 +2172,7 @@ fn package_metadata() {
2147
2172
}
2148
2173
],
2149
2174
"workspace_members": ["foo[..]"],
2175
+ "workspace_default_members": ["foo[..]"],
2150
2176
"resolve": null,
2151
2177
"target_directory": "[..]foo/target",
2152
2178
"version": 1,
@@ -2222,6 +2248,7 @@ fn package_publish() {
2222
2248
}
2223
2249
],
2224
2250
"workspace_members": ["foo[..]"],
2251
+ "workspace_default_members": ["foo[..]"],
2225
2252
"resolve": null,
2226
2253
"target_directory": "[..]foo/target",
2227
2254
"version": 1,
@@ -2317,6 +2344,9 @@ fn cargo_metadata_path_to_cargo_toml_project() {
2317
2344
"workspace_members": [
2318
2345
"bar 0.5.0 (path+file:[..])"
2319
2346
],
2347
+ "workspace_default_members": [
2348
+ "bar 0.5.0 (path+file:[..])"
2349
+ ],
2320
2350
"workspace_root": "[..]",
2321
2351
"metadata": null
2322
2352
}
@@ -2405,6 +2435,9 @@ fn package_edition_2018() {
2405
2435
"workspace_members": [
2406
2436
"foo 0.1.0 (path+file:[..])"
2407
2437
],
2438
+ "workspace_default_members": [
2439
+ "foo 0.1.0 (path+file:[..])"
2440
+ ],
2408
2441
"workspace_root": "[..]",
2409
2442
"metadata": null
2410
2443
}
@@ -2553,6 +2586,9 @@ fn target_edition_2018() {
2553
2586
"workspace_members": [
2554
2587
"foo 0.1.0 (path+file:[..])"
2555
2588
],
2589
+ "workspace_default_members": [
2590
+ "foo 0.1.0 (path+file:[..])"
2591
+ ],
2556
2592
"workspace_root": "[..]",
2557
2593
"metadata": null
2558
2594
}
@@ -2789,6 +2825,9 @@ fn rename_dependency() {
2789
2825
"workspace_members": [
2790
2826
"foo 0.0.1[..]"
2791
2827
],
2828
+ "workspace_default_members": [
2829
+ "foo 0.0.1[..]"
2830
+ ],
2792
2831
"workspace_root": "[..]",
2793
2832
"metadata": null
2794
2833
}"# ,
@@ -2889,6 +2928,9 @@ fn metadata_links() {
2889
2928
"workspace_members": [
2890
2929
"foo 0.5.0 [..]"
2891
2930
],
2931
+ "workspace_default_members": [
2932
+ "foo 0.5.0 [..]"
2933
+ ],
2892
2934
"workspace_root": "[..]/foo",
2893
2935
"metadata": null
2894
2936
}
@@ -2979,6 +3021,9 @@ fn deps_with_bin_only() {
2979
3021
"workspace_members": [
2980
3022
"foo 0.1.0 ([..])"
2981
3023
],
3024
+ "workspace_default_members": [
3025
+ "foo 0.1.0 ([..])"
3026
+ ],
2982
3027
"resolve": {
2983
3028
"nodes": [
2984
3029
{
@@ -3358,6 +3403,9 @@ fn filter_platform() {
3358
3403
"workspace_members": [
3359
3404
"foo 0.1.0 (path+file:[..]foo)"
3360
3405
],
3406
+ "workspace_default_members": [
3407
+ "foo 0.1.0 (path+file:[..]foo)"
3408
+ ],
3361
3409
"resolve": {
3362
3410
"nodes": [
3363
3411
{
@@ -3477,6 +3525,7 @@ fn filter_platform() {
3477
3525
$NORMAL_DEP
3478
3526
],
3479
3527
"workspace_members": "{...}",
3528
+ "workspace_default_members": "{...}",
3480
3529
"resolve": {
3481
3530
"nodes": [
3482
3531
{
@@ -3558,6 +3607,7 @@ fn filter_platform() {
3558
3607
$NORMAL_DEP
3559
3608
],
3560
3609
"workspace_members": "{...}",
3610
+ "workspace_default_members": "{...}",
3561
3611
"resolve": {
3562
3612
"nodes": [
3563
3613
{
@@ -3642,6 +3692,7 @@ fn filter_platform() {
3642
3692
$NORMAL_DEP
3643
3693
],
3644
3694
"workspace_members": "{...}",
3695
+ "workspace_default_members": "{...}",
3645
3696
"resolve": {
3646
3697
"nodes": [
3647
3698
{
@@ -3756,6 +3807,7 @@ fn dep_kinds() {
3756
3807
{
3757
3808
"packages": "{...}",
3758
3809
"workspace_members": "{...}",
3810
+ "workspace_default_members": "{...}",
3759
3811
"target_directory": "{...}",
3760
3812
"version": 1,
3761
3813
"workspace_root": "{...}",
@@ -3871,6 +3923,7 @@ fn dep_kinds_workspace() {
3871
3923
{
3872
3924
"packages": "{...}",
3873
3925
"workspace_members": "{...}",
3926
+ "workspace_default_members": "{...}",
3874
3927
"target_directory": "[..]/foo/target",
3875
3928
"version": 1,
3876
3929
"workspace_root": "[..]/foo",
@@ -4184,6 +4237,11 @@ fn workspace_metadata_with_dependencies_no_deps_artifact() {
4184
4237
"artifact 0.5.0 (path+file://[..]/foo/artifact)",
4185
4238
"baz 0.5.0 (path+file://[..]/foo/baz)"
4186
4239
],
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
+ ],
4187
4245
"workspace_root": "[..]/foo"
4188
4246
}
4189
4247
"# ,
0 commit comments