@@ -6430,6 +6430,78 @@ fn workspace_with_local_and_remote_deps() {
6430
6430
. run ( ) ;
6431
6431
}
6432
6432
6433
+ #[ cargo_test]
6434
+ fn workspace_with_dot_rs_dir ( ) {
6435
+ let reg = registry:: init ( ) ;
6436
+
6437
+ let p = project ( )
6438
+ . file (
6439
+ "Cargo.toml" ,
6440
+ r#"
6441
+ [workspace]
6442
+ members = ["crates/*"]
6443
+ "# ,
6444
+ )
6445
+ . file (
6446
+ "crates/foo.rs/Cargo.toml" ,
6447
+ r#"
6448
+ [package]
6449
+ name = "foo"
6450
+ version = "0.16.2"
6451
+ edition = "2015"
6452
+ authors = []
6453
+ license = "MIT"
6454
+ description = "main"
6455
+ repository = "bar"
6456
+
6457
+ [dependencies]
6458
+ "# ,
6459
+ )
6460
+ . file ( "crates/foo.rs/src/lib.rs" , "pub fn foo() {}" )
6461
+ . file (
6462
+ "crates/bar.rs/Cargo.toml" ,
6463
+ r#"
6464
+ [package]
6465
+ name = "bar"
6466
+ version = "0.16.2"
6467
+ edition = "2015"
6468
+ authors = []
6469
+ license = "MIT"
6470
+ description = "main"
6471
+ repository = "bar"
6472
+
6473
+ [dependencies]
6474
+ foo = { path = "../foo.rs", version = "0.16.2" }
6475
+ "# ,
6476
+ )
6477
+ . file ( "crates/bar.rs/src/lib.rs" , "pub fn foo() {}" )
6478
+ . build ( ) ;
6479
+
6480
+ p. cargo ( "package -Zpackage-workspace" )
6481
+ . masquerade_as_nightly_cargo ( & [ "package-workspace" ] )
6482
+ . replace_crates_io ( reg. index_url ( ) )
6483
+ . with_stderr_data (
6484
+ str![ [ r#"
6485
+ [PACKAGING] foo v0.16.2 ([ROOT]/foo/crates/foo.rs)
6486
+ [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
6487
+ [PACKAGING] bar v0.16.2 ([ROOT]/foo/crates/bar.rs)
6488
+ [UPDATING] crates.io index
6489
+ [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
6490
+ [VERIFYING] foo v0.16.2 ([ROOT]/foo/crates/foo.rs)
6491
+ [COMPILING] foo v0.16.2 ([ROOT]/foo/target/package/foo-0.16.2)
6492
+ [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
6493
+ [VERIFYING] bar v0.16.2 ([ROOT]/foo/crates/bar.rs)
6494
+ [UNPACKING] foo v0.16.2 (registry `[ROOT]/foo/target/package/tmp-registry`)
6495
+ [COMPILING] foo v0.16.2
6496
+ [COMPILING] bar v0.16.2 ([ROOT]/foo/target/package/bar-0.16.2)
6497
+ [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
6498
+
6499
+ "# ] ]
6500
+ . unordered ( ) ,
6501
+ )
6502
+ . run ( ) ;
6503
+ }
6504
+
6433
6505
#[ cargo_test]
6434
6506
fn registry_not_in_publish_list ( ) {
6435
6507
let p = project ( )
0 commit comments