Skip to content

composefs-boot: Make composefs integration optional - #411

Merged
cgwalters merged 1 commit into
mainfrom
standalone-boot
Oct 2, 2026
Merged

cgwalters merged 1 commit into
mainfrom
standalone-boot

Conversation

@alexlarsson

Copy link
Copy Markdown
Contributor

Allow e.g. bcvk to use the Android boot image and UKI parsers without pulling in the composefs dependency graph. Keep integration enabled by default so existing consumers retain their current APIs.

Assisted-by: AI

note: This is a draft proposal for bootc-dev/bcvk#397, whether we want to do this depends on the outcome of that.

Allow e.g. bcvk to use the Android boot image and UKI parsers without
pulling in the composefs dependency graph. Keep integration enabled by
default so existing consumers retain their current APIs.

Assisted-by: AI
Signed-off-by: Alexander Larsson <alexl@redhat.com>
@alexlarsson

Copy link
Copy Markdown
Contributor Author

I see @cgwalters acked bootc-dev/bcvk#397, so I'm removing the draft here.

@alexlarsson
alexlarsson marked this pull request as ready for review October 2, 2026 14:13
@cgwalters
cgwalters requested a balanced review from Copilot October 2, 2026 20:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The newly supported parser-only feature configuration is not exercised by CI.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Makes composefs integration optional so consumers such as bcvk can use boot-image parsers with minimal dependencies.

Changes:

  • Adds default-enabled composefs-integration feature.
  • Gates composefs-specific modules and dependencies.
  • Moves BootOps into a feature-gated module.
File Description
Cargo.toml Preserves default features for workspace consumers.
crates/​composefs-boot/​Cargo.toml Defines feature and optional dependencies.
crates/​composefs-boot/​src/​lib.rs Gates integration APIs.
crates/​composefs-boot/​src/​integration.rs Houses composefs-specific boot transformations.
crates/​composefs-boot/​src/​uki.rs Gates integration-only test helper.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.


[features]
default = ["composefs-integration"]
composefs-integration = ["dep:anyhow", "dep:composefs", "dep:fn-error-context", "dep:pcre2", "dep:regex-automata", "dep:rustix"]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yeah, can be a followup though

@cgwalters
cgwalters added this pull request to the merge queue Oct 2, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 2, 2026
@cgwalters
cgwalters added this pull request to the merge queue Oct 2, 2026
Merged via the queue into main with commit e0529af Oct 2, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants