Skip to content

srp: refactor to eliminate statics#235

Merged
tarcieri merged 1 commit intomasterfrom
srp/refactor-to-eliminate-statics
Jan 13, 2026
Merged

srp: refactor to eliminate statics#235
tarcieri merged 1 commit intomasterfrom
srp/refactor-to-eliminate-statics

Conversation

@tarcieri
Copy link
Member

@tarcieri tarcieri commented Jan 13, 2026

Previously the crate used once_cell (and before that lazy_static) but the relevant group parameters can easily be stored as associated constants of traits, then turned into BoxedMontyForm when the Client or Server type is initialized.

This approach also makes Client and Server type-safe for a given group.

This gets rid of the once_cell dependency which makes it much simpler for the crate to actually support no_std(+alloc) environments.

Also adds CI for no_std.

@tarcieri tarcieri force-pushed the srp/refactor-to-eliminate-statics branch 2 times, most recently from bbd1105 to 04e3edb Compare January 13, 2026 03:47
Previously the crate used `once_cell` (and before that `lazy_static`)
but the relevant group parameters can easily be stored as associated
constants of traits, then turned into `BoxedMontyForm` when the `Client`
or `Server` type is initialized.

This gets rid of the `once_cell` dependency which makes it much simpler
for the crate to actually support `no_std`(+`alloc`) environments.

Also adds CI for `no_std`.
@tarcieri tarcieri force-pushed the srp/refactor-to-eliminate-statics branch from 04e3edb to bb57cf6 Compare January 13, 2026 03:50
@tarcieri tarcieri merged commit 66be5d1 into master Jan 13, 2026
21 checks passed
@tarcieri tarcieri deleted the srp/refactor-to-eliminate-statics branch January 13, 2026 03:53
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