fix: Accept Cargo profiles with disabled path trimming #681

Open
erikinkinen wants to merge 0 commits from fix/native-profile-trim-paths into feature/native-build-script-producers
Owner

Cargo can include an explicit trim_paths: "none" in unit profiles. Accept it as equivalent to the older absent field, preserving the generated compiler flags. Other trimming scopes still require an explicit remapping recipe and are rejected.

Part of #663.

  • Preserve legacy profile arguments and accept explicit disabled trimming.
  • Cover unsupported values, foreign scalar types and unchanged input data.

This fixes profile encoding; it does not establish native artifact or guest-build acceptance.

Cargo can include an explicit `trim_paths: "none"` in unit profiles. Accept it as equivalent to the older absent field, preserving the generated compiler flags. Other trimming scopes still require an explicit remapping recipe and are rejected. Part of #663. - [x] Preserve legacy profile arguments and accept explicit disabled trimming. - [x] Cover unsupported values, foreign scalar types and unchanged input data. This fixes profile encoding; it does not establish native artifact or guest-build acceptance.
erikinkinen added this to the Alpha 1 milestone 2026-11-10 15:35:12 +01:00
Treat the explicit none path-trimming selection as equivalent to the older absent field. Preserve the selected code generation flags and reject unsupported remapping scopes and foreign values.
Regenerate the complete source declaration for the maintained Cargo profile encoder.
build: Bind explicit profile path-trimming support
Some checks failed
Markdown / markdown (push) Successful in 25s
CI / cargo_publications (pull_request) Has been skipped
CI / rust (pull_request) Has been skipped
CI / native_sources (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
CI / cargo_publications (push) Failing after 4m41s
CI / rust (push) Failing after 4m53s
CI / native_sources (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / integration (push) Has been skipped
Coreutils provider graph / coreutils (push) Successful in 5m56s
aca471bb6f
Bind the complete profile source and declaration revisions in the defining runner.
Some checks failed
Markdown / markdown (push) Successful in 25s
CI / cargo_publications (pull_request) Has been skipped
CI / rust (pull_request) Has been skipped
CI / native_sources (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
CI / cargo_publications (push) Failing after 4m41s
CI / rust (push) Failing after 4m53s
CI / native_sources (push) Has been skipped
CI / host_one (push) Has been skipped
CI / host_three (push) Has been skipped
CI / host_two (push) Has been skipped
CI / host_zero (push) Has been skipped
CI / integration (push) Has been skipped
Coreutils provider graph / coreutils (push) Successful in 5m56s
This branch is already included in the target branch. There is nothing to merge.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'fix/native-profile-trim-paths:fix/native-profile-trim-paths'
git switch 'fix/native-profile-trim-paths'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'feature/native-build-script-producers'
git merge --no-ff 'fix/native-profile-trim-paths'
git switch 'fix/native-profile-trim-paths'
git rebase 'feature/native-build-script-producers'
git switch 'feature/native-build-script-producers'
git merge --ff-only 'fix/native-profile-trim-paths'
git switch 'fix/native-profile-trim-paths'
git rebase 'feature/native-build-script-producers'
git switch 'feature/native-build-script-producers'
git merge --no-ff 'fix/native-profile-trim-paths'
git switch 'feature/native-build-script-producers'
git merge --squash 'fix/native-profile-trim-paths'
git switch 'feature/native-build-script-producers'
git merge --ff-only 'fix/native-profile-trim-paths'
git switch 'feature/native-build-script-producers'
git merge 'fix/native-profile-trim-paths'
git push origin 'feature/native-build-script-producers'
Sign in to join this conversation.
No description provided.