@@ -496,6 +496,9 @@ features! {
496
496
497
497
// Support for 2024 edition.
498
498
( unstable, edition2024, "" , "reference/unstable.html#edition-2024" ) ,
499
+
500
+ // Allow setting trim-paths in a profile to control the sanitisation of file paths in build outputs.
501
+ ( unstable, trim_paths, "" , "reference/unstable.html#profile-trim-paths-option" ) ,
499
502
}
500
503
501
504
pub struct Feature {
@@ -755,6 +758,7 @@ unstable_cli_options!(
755
758
separate_nightlies: bool = ( HIDDEN ) ,
756
759
skip_rustdoc_fingerprint: bool = ( HIDDEN ) ,
757
760
target_applies_to_host: bool = ( "Enable the `target-applies-to-host` key in the .cargo/config.toml file" ) ,
761
+ trim_paths: bool = ( "Enable the `trim-paths` option in profiles" ) ,
758
762
unstable_options: bool = ( "Allow the usage of unstable options" ) ,
759
763
) ;
760
764
@@ -1089,6 +1093,7 @@ impl CliUnstable {
1089
1093
"no-index-update" => self . no_index_update = parse_empty ( k, v) ?,
1090
1094
"panic-abort-tests" => self . panic_abort_tests = parse_empty ( k, v) ?,
1091
1095
"profile-rustflags" => self . profile_rustflags = parse_empty ( k, v) ?,
1096
+ "trim-paths" => self . trim_paths = parse_empty ( k, v) ?,
1092
1097
"publish-timeout" => self . publish_timeout = parse_empty ( k, v) ?,
1093
1098
"rustdoc-map" => self . rustdoc_map = parse_empty ( k, v) ?,
1094
1099
"rustdoc-scrape-examples" => self . rustdoc_scrape_examples = parse_empty ( k, v) ?,
0 commit comments