Skip to content

Fix bgcode-mangle append insertion - #5366

Open
Old-Ding wants to merge 1 commit into
prusa3d:masterfrom
Old-Ding:codex/bgcode-mangle-append-insert
Open

Fix bgcode-mangle append insertion#5366
Old-Ding wants to merge 1 commit into
prusa3d:masterfrom
Old-Ding:codex/bgcode-mangle-append-insert

Conversation

@Old-Ding

@Old-Ding Old-Ding commented Jul 5, 2026

Copy link
Copy Markdown

Summary

  • allow bgcode-mangle -i <block_count> to append the generated printer metadata block after the last input block
  • add a CLI regression test with a minimal one-block bgcode file

Testing

  • cargo test and cargo test --release (unit and CLI regression tests passed)
  • cargo clippy --all-targets -- -D warnings
  • git diff --check
  • rustfmt --check still reports pre-existing formatting drift in utils/bgcode-mangle/src/main.rs; unrelated lines remain unchanged

Insert the generated printer metadata block when --insert-at points just past the last input block.

Generated-by: OpenAI Codex
Signed-off-by: Old Ding <35417409+Old-Ding@users.noreply.github.com>
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.

1 participant