Skip to content

Replace no_unroll feature(s) with soft-compact cfg#105

Merged
tarcieri merged 1 commit intomasterfrom
replace-no_unroll-feature-with-soft-compact-cfg
Feb 13, 2026
Merged

Replace no_unroll feature(s) with soft-compact cfg#105
tarcieri merged 1 commit intomasterfrom
replace-no_unroll-feature-with-soft-compact-cfg

Conversation

@tarcieri
Copy link
Member

The following crates now have a new cfg for backend selection:

  • ascon: --cfg ascon_backend="soft-compact"
  • keccak: --cfg keccak_backend="soft-compact"

This replaces the previous crate features, as suggested in #85

@tarcieri
Copy link
Member Author

Note: I can take a look at doing the same with the asm and simd features in keccak as a followup, but let's start here and get this done first

@tarcieri tarcieri force-pushed the replace-no_unroll-feature-with-soft-compact-cfg branch from cf62712 to 190bccd Compare February 13, 2026 18:52
@tarcieri
Copy link
Member Author

Ugh @ formatting changes in the unrolling macros, let me make the edits in an editor that doesn't autoformat

The following crates now have a new `cfg` for backend selection:
- `ascon`: `--cfg ascon_backend="soft-compact"`
- `keccak`: `--cfg keccak_backend="soft-compact"`

This replaces the previous crate features, as suggested in #85
@tarcieri tarcieri force-pushed the replace-no_unroll-feature-with-soft-compact-cfg branch from 190bccd to 3954968 Compare February 13, 2026 18:57
@tarcieri
Copy link
Member Author

Regarding the duplicated lint configs, we'd need support for merging crate-specific overrides into the workspace-level configs, which doesn't exist yet: rust-lang/cargo#13157

@tarcieri tarcieri merged commit a1be08a into master Feb 13, 2026
28 checks passed
@tarcieri tarcieri deleted the replace-no_unroll-feature-with-soft-compact-cfg branch February 13, 2026 19:00
no_unroll = [] # Do no unroll loops for binary size reduction
simd = [] # Use core::simd (nightly-only)
asm = [] # Use optimized assembly when available (currently only ARMv8)
simd = [] # Use core::simd (nightly-only)
Copy link
Member

Choose a reason for hiding this comment

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

Maybe it's worth to replace this features with the cfg(keccak_backend = "...") as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, that's what I was alluding to above

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