Skip to content

Rust wrapper: mldsa: fix cfg detection for public and private build options - #11486

Open
holtrop-wolfssl wants to merge 1 commit into
wolfSSL:masterfrom
holtrop-wolfssl:f-13035
Open

holtrop-wolfssl wants to merge 1 commit into
wolfSSL:masterfrom
holtrop-wolfssl:f-13035

Conversation

@holtrop-wolfssl

Copy link
Copy Markdown
Contributor

Description

Rust wrapper: mldsa: fix cfg detection for public and private build options

Fixes F-13035.

Testing

How did you test?

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@holtrop-wolfssl holtrop-wolfssl self-assigned this Sep 17, 2026
Copilot AI lite review requested due to automatic review settings September 17, 2026 14:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Combined import and export methods still need public-API cfg gates to avoid unresolved symbols in private-only builds.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

This pull request fixes Rust ML-DSA conditional compilation for separate wolfCrypt public and private build options.

Changes:

  • Detects individual ML-DSA API availability.
  • Applies feature-specific cfg gates to wrapper methods and tests.
  • Updates documentation examples and test conditions.
File summaries
File Summary
wrapper/rust/wolfssl-wolfcrypt/tests/test_mldsa.rs Aligns tests with available ML-DSA features.
wrapper/rust/wolfssl-wolfcrypt/src/mldsa.rs Gates wrapper methods and examples by API availability.
wrapper/rust/wolfssl-wolfcrypt/build.rs Detects individual ML-DSA API symbols.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 2
  • Review effort level: Lite

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

Comment thread wrapper/rust/wolfssl-wolfcrypt/src/mldsa.rs Outdated
Comment thread wrapper/rust/wolfssl-wolfcrypt/src/mldsa.rs Outdated
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