Skip to content

feat: add no_std support - #12

Merged
DaniPopes merged 1 commit into
mainfrom
dani/no-std
Feb 7, 2026
Merged

feat: add no_std support#12
DaniPopes merged 1 commit into
mainfrom
dani/no-std

Conversation

@DaniPopes

Copy link
Copy Markdown
Owner

Add std (default) and alloc feature flags, making the crate no_std-compatible.

The core cache functionality works in no_std environments via new_static and static_cache!. Dynamic allocation through Cache::new requires the alloc feature. The stats feature now implies alloc since it uses Box and Arc.

When neither rapidhash nor std is enabled, the default hasher type is uninhabited, requiring users to specify their own BuildHasher.

Add std (default) and alloc feature flags. The core cache
functionality works in no_std environments using new_static and
static_cache!. Dynamic allocation via Cache::new requires the alloc
feature. The stats feature now implies alloc since it uses Box and Arc.
@DaniPopes
DaniPopes merged commit 44ba268 into main Feb 7, 2026
11 checks passed
@DaniPopes
DaniPopes deleted the dani/no-std branch February 7, 2026 19:12
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