@@ -513,6 +513,9 @@ features! {
513
513
514
514
/// Allow multiple packages to participate in the same API namespace
515
515
( unstable, open_namespaces, "" , "reference/unstable.html#open-namespaces" ) ,
516
+
517
+ /// Allow patching dependencies with patch files.
518
+ ( unstable, patch_files, "" , "reference/unstable.html#patch-files" ) ,
516
519
}
517
520
518
521
/// Status and metadata for a single unstable feature.
@@ -775,6 +778,7 @@ unstable_cli_options!(
775
778
next_lockfile_bump: bool ,
776
779
no_index_update: bool = ( "Do not update the registry index even if the cache is outdated" ) ,
777
780
panic_abort_tests: bool = ( "Enable support to run tests with -Cpanic=abort" ) ,
781
+ patch_files: bool = ( "Allow patching dependencies with patch files" ) ,
778
782
profile_rustflags: bool = ( "Enable the `rustflags` option in profiles in .cargo/config.toml file" ) ,
779
783
public_dependency: bool = ( "Respect a dependency's `public` field in Cargo.toml to control public/private dependencies" ) ,
780
784
publish_timeout: bool = ( "Enable the `publish.timeout` key in .cargo/config.toml file" ) ,
@@ -1277,6 +1281,7 @@ impl CliUnstable {
1277
1281
"mtime-on-use" => self . mtime_on_use = parse_empty ( k, v) ?,
1278
1282
"no-index-update" => self . no_index_update = parse_empty ( k, v) ?,
1279
1283
"panic-abort-tests" => self . panic_abort_tests = parse_empty ( k, v) ?,
1284
+ "patch-files" => self . patch_files = parse_empty ( k, v) ?,
1280
1285
"public-dependency" => self . public_dependency = parse_empty ( k, v) ?,
1281
1286
"profile-rustflags" => self . profile_rustflags = parse_empty ( k, v) ?,
1282
1287
"trim-paths" => self . trim_paths = parse_empty ( k, v) ?,
0 commit comments