@@ -2129,26 +2129,7 @@ a = {path = "a", default_features = false}
2129
2129
. with_stderr (
2130
2130
"\
2131
2131
[MIGRATING] Cargo.toml from 2021 edition to 2024
2132
- [WARNING] [CWD]/Cargo.toml: `dev_dependencies` is deprecated in favor of `dev-dependencies` and will not work in the 2024 edition
2133
- (in the `foo` package)
2134
- [WARNING] [CWD]/Cargo.toml: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition
2135
- (in the `a` dependency)
2136
- [WARNING] [CWD]/Cargo.toml: `build_dependencies` is deprecated in favor of `build-dependencies` and will not work in the 2024 edition
2137
- (in the `foo` package)
2138
- [WARNING] [CWD]/Cargo.toml: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition
2139
- (in the `a` dependency)
2140
- [WARNING] [CWD]/Cargo.toml: `dev_dependencies` is deprecated in favor of `dev-dependencies` and will not work in the 2024 edition
2141
- (in the `cfg(any())` platform target)
2142
- [WARNING] [CWD]/Cargo.toml: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition
2143
- (in the `a` dependency)
2144
- [WARNING] [CWD]/Cargo.toml: `build_dependencies` is deprecated in favor of `build-dependencies` and will not work in the 2024 edition
2145
- (in the `cfg(any())` platform target)
2146
- [WARNING] [CWD]/Cargo.toml: `default_features` is deprecated in favor of `default-features` and will not work in the 2024 edition
2147
- (in the `a` dependency)
2148
- [WARNING] [CWD]/Cargo.toml: `crate_type` is deprecated in favor of `crate-type` and will not work in the 2024 edition
2149
- (in the `foo` library target)
2150
- [WARNING] [CWD]/Cargo.toml: `crate_type` is deprecated in favor of `crate-type` and will not work in the 2024 edition
2151
- (in the `ex` example target)
2132
+ [FIXED] Cargo.toml (11 fixes)
2152
2133
Locking 2 packages to latest compatible versions
2153
2134
Checking a v0.0.1 ([CWD]/a)
2154
2135
[CHECKING] foo v0.0.0 ([CWD])
@@ -2165,7 +2146,7 @@ cargo-features = ["edition2024"]
2165
2146
2166
2147
[workspace.dependencies]
2167
2148
# Before default_features
2168
- a = {path = "a", default_features = false} # After default_features value
2149
+ a = {path = "a", default-features = false} # After default_features value
2169
2150
# After default_features line
2170
2151
2171
2152
[package]
@@ -2175,40 +2156,40 @@ edition = "2021"
2175
2156
[lib]
2176
2157
name = "foo"
2177
2158
# Before crate_type
2178
- crate_type = ["staticlib", "dylib"] # After crate_type value
2159
+ crate-type = ["staticlib", "dylib"] # After crate_type value
2179
2160
# After crate_type line
2180
2161
2181
2162
[[example]]
2182
2163
name = "ex"
2183
2164
path = "examples/ex.rs"
2184
2165
# Before crate_type
2185
- crate_type = ["proc-macro"] # After crate_type value
2166
+ crate-type = ["proc-macro"] # After crate_type value
2186
2167
# After crate_type line
2187
2168
2188
2169
# Before dev_dependencies
2189
- [ dev_dependencies ] # After dev_dependencies header
2170
+ [ dev-dependencies ] # After dev_dependencies header
2190
2171
# After dev_dependencies line
2191
- a = {path = "a", default_features = false}
2172
+ a = {path = "a", default-features = false}
2192
2173
# After dev_dependencies table
2193
2174
2194
2175
# Before build_dependencies
2195
- [ build_dependencies ] # After build_dependencies header
2176
+ [ build-dependencies ] # After build_dependencies header
2196
2177
# After build_dependencies line
2197
- a = {path = "a", default_features = false}
2178
+ a = {path = "a", default-features = false}
2198
2179
# After build_dependencies table
2199
2180
2200
2181
# Before dev_dependencies
2201
- [ target.'cfg(any())'.dev_dependencies ] # After dev_dependencies header
2182
+ [ target.'cfg(any())'.dev-dependencies ] # After dev_dependencies header
2202
2183
# After dev_dependencies line
2203
- a = {path = "a", default_features = false}
2184
+ a = {path = "a", default-features = false}
2204
2185
# After dev_dependencies table
2205
2186
2206
2187
# Before build_dependencies
2207
- [ target.'cfg(any())'.build_dependencies ] # After build_dependencies header
2188
+ [ target.'cfg(any())'.build-dependencies ] # After build_dependencies header
2208
2189
# After build_dependencies line
2209
- a = {path = "a", default_features = false}
2190
+ a = {path = "a", default-features = false}
2210
2191
# After build_dependencies table
2211
- "#
2192
+ "# ,
2212
2193
) ;
2213
2194
}
2214
2195
0 commit comments