Skip to content

Make sure COSE Rust Debug/Release is consistent with CCF#7823

Merged
maxtropets merged 3 commits intomainfrom
f/support-debug-cose-rs
Apr 16, 2026
Merged

Make sure COSE Rust Debug/Release is consistent with CCF#7823
maxtropets merged 3 commits intomainfrom
f/support-debug-cose-rs

Conversation

@maxtropets
Copy link
Copy Markdown
Collaborator

@maxtropets maxtropets commented Apr 15, 2026

@maxtropets maxtropets self-assigned this Apr 15, 2026
@maxtropets maxtropets marked this pull request as ready for review April 15, 2026 10:36
@maxtropets maxtropets requested a review from a team as a code owner April 15, 2026 10:36
Copilot AI review requested due to automatic review settings April 15, 2026 10:36
Comment thread cmake/cose_openssl.cmake
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Aligns the Rust cose-rs Cargo build profile (debug vs release) with CMake’s CMAKE_BUILD_TYPE, and prevents accidental profile mismatches.

Changes:

  • Rejects multi-config CMake generators to avoid Cargo profile/build-type drift.
  • Maps CMAKE_BUILD_TYPE to a Cargo profile flag and library output directory.
  • Improves build logging and uses the selected Cargo profile in the custom target.

Comment thread cmake/cose_openssl.cmake
Comment thread cmake/cose_openssl.cmake
Comment thread cmake/cose_openssl.cmake
Copy link
Copy Markdown
Contributor

@cjen1-msft cjen1-msft left a comment

Choose a reason for hiding this comment

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

I'd debated this previously.
I think this is probably the right thing.

However. As CCF is a consumer of the rust here, an argument could be made that it should be release-only.
But, afaicr release doesn't emit symbols, so for debugging e2e issues I think this is useful.

@maxtropets maxtropets enabled auto-merge (squash) April 16, 2026 13:06
@maxtropets maxtropets merged commit caf1c56 into main Apr 16, 2026
19 checks passed
@maxtropets maxtropets deleted the f/support-debug-cose-rs branch April 16, 2026 13:35
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.

4 participants