Skip to content

Conversation

@kornelski
Copy link
Collaborator

Includes #470

If C lacks MLKEM APIs, and the mlkem Cargo feature isn't requiring a real MLKEM support, boring-sys will inject an always-failing fallback to allow Rust bindings to fail at run time instead of compile time.

It uses a glob to add the fallback, because Rust always prefers real definitions over globs, so the real definitions will be used if they're available.


fn fail() {
unsafe {
ERR_put_error(
Copy link
Member

Choose a reason for hiding this comment

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

This only records an error, right? Doesn't halt the execution.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah. I've renamed it to just put_error.

@kornelski kornelski force-pushed the dummy-mlkem branch 2 times, most recently from baeef71 to 73f7b62 Compare February 10, 2026 22:42
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.

2 participants