Skip to content

use hashbrown internally if it's enabled#6055

Open
Person-93 wants to merge 1 commit into
PyO3:mainfrom
Person-93:hashbrown
Open

use hashbrown internally if it's enabled#6055
Person-93 wants to merge 1 commit into
PyO3:mainfrom
Person-93:hashbrown

Conversation

@Person-93
Copy link
Copy Markdown
Contributor

This PR is to prepare for no_std support.

I've added a platform.rs mod to include the replacements that will be needed.

If the hashbrown feature is enabled it re-exports HashMap and HashSet from there. If it's not, they are re-exported from std.

Once there is an std feature, those imports will be conditional as well. If the hashbrown and std features are both disabled, it can conditionally call the compile_error macro.

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