Skip to content

Commit 585778f

Browse files
committed
deprecate profile option
Signed-off-by: onur-ozkan <[email protected]>
1 parent ad2e4a4 commit 585778f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/bootstrap/src/core/config/config.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,7 @@ pub(crate) struct TomlConfig {
698698
rust: Option<Rust>,
699699
target: Option<HashMap<String, TomlTarget>>,
700700
dist: Option<Dist>,
701+
// FIXME: Remove this field at Q3 2025, it has been replaced by `include`.
701702
profile: Option<String>,
702703
include: Option<Vec<PathBuf>>,
703704
}
@@ -1609,6 +1610,7 @@ impl Config {
16091610
}
16101611

16111612
if let Some(include) = &toml.profile {
1613+
eprintln!("Warning: `profile` is deprecated. Prefer `include` instead.");
16121614
// Allows creating alias for profile names, allowing
16131615
// profiles to be renamed while maintaining back compatibility
16141616
// Keep in sync with `profile_aliases` in bootstrap.py

src/bootstrap/src/utils/change_tracker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,6 @@ pub const CONFIG_CHANGE_HISTORY: &[ChangeInfo] = &[
394394
ChangeInfo {
395395
change_id: 138934,
396396
severity: ChangeSeverity::Info,
397-
summary: "Added new option `include` to create config extensions.",
397+
summary: "Added a new option `include` to create config extensions; `profile` is now deprecated.",
398398
},
399399
];

0 commit comments

Comments
 (0)