Skip to content

Conversation

@ivila
Copy link
Contributor

@ivila ivila commented Jan 3, 2025

What does this PR do?

Fixes #544
Core changes are:

  1. add features: [default, std, alloc]: developers must choose either std or alloc, default to std
  2. if no std: use hashbrown::HashMap as alternative to std::collections::HashMap
  3. if no std: remove IoError from Error enum, and remove serialize_to_file

Copy link
Contributor

@Narsil Narsil left a comment

Choose a reason for hiding this comment

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

LGTM.

Thanks for this, pretty clean implementation !

@Narsil Narsil merged commit 38a3629 into huggingface:main Jan 7, 2025
25 of 26 checks passed
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.

Support no_std

2 participants