@@ -2600,9 +2600,7 @@ target-dep = ["dep:target-dep"]
2600
2600
2601
2601
#[ cargo_test]
2602
2602
fn add_feature_for_unused_dep_existing_table ( ) {
2603
- Package :: new ( "bar" , "0.1.0" ) . publish ( ) ;
2604
- Package :: new ( "baz" , "0.1.0" ) . publish ( ) ;
2605
- Package :: new ( "target-dep" , "0.1.0" ) . publish ( ) ;
2603
+ Package :: new ( "dep" , "0.1.0" ) . publish ( ) ;
2606
2604
let p = project ( )
2607
2605
. file (
2608
2606
"Cargo.toml" ,
@@ -2613,16 +2611,10 @@ version = "0.1.0"
2613
2611
edition = "2021"
2614
2612
2615
2613
[dependencies]
2616
- bar = { version = "0.1.0", optional = true }
2617
-
2618
- [build-dependencies]
2619
- baz = { version = "0.1.0", optional = true }
2620
-
2621
- [target.'cfg(target_os = "linux")'.dependencies]
2622
- target-dep = { version = "0.1.0", optional = true }
2614
+ dep = { version = "0.1.0", optional = true }
2623
2615
2624
2616
[features]
2625
- target-dep = ["dep:target-dep" ]
2617
+ existing = []
2626
2618
"# ,
2627
2619
)
2628
2620
. file ( "src/lib.rs" , "" )
@@ -2633,9 +2625,9 @@ target-dep = ["dep:target-dep"]
2633
2625
. with_stderr (
2634
2626
"\
2635
2627
[MIGRATING] Cargo.toml from 2021 edition to 2024
2636
- [FIXED] Cargo.toml (2 fixes )
2628
+ [FIXED] Cargo.toml (1 fix )
2637
2629
[UPDATING] `dummy-registry` index
2638
- [LOCKING] 4 packages to latest compatible versions
2630
+ [LOCKING] 2 packages to latest compatible versions
2639
2631
[CHECKING] foo v0.1.0 ([CWD])
2640
2632
[MIGRATING] src/lib.rs from 2021 edition to 2024
2641
2633
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [..]s
@@ -2652,18 +2644,11 @@ version = "0.1.0"
2652
2644
edition = "2021"
2653
2645
2654
2646
[dependencies]
2655
- bar = { version = "0.1.0", optional = true }
2656
-
2657
- [build-dependencies]
2658
- baz = { version = "0.1.0", optional = true }
2659
-
2660
- [target.'cfg(target_os = "linux")'.dependencies]
2661
- target-dep = { version = "0.1.0", optional = true }
2647
+ dep = { version = "0.1.0", optional = true }
2662
2648
2663
2649
[features]
2664
- target-dep = ["dep:target-dep"]
2665
- bar = ["dep:bar"]
2666
- baz = ["dep:baz"]
2650
+ existing = []
2651
+ dep = ["dep:dep"]
2667
2652
2668
2653
"# ] ] ,
2669
2654
) ;
0 commit comments