Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor adjustments to enable use in alloc environments without std. #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pperanich
Copy link

These changes enable the async feature to be used in no_std when alloc is still available. All tests still passed.

  • Use hashbrown::HashMap instead of std::collections::HashMap for alloc compatibility.
  • Remove standard library dependency from the async feature, enabling use in no_std environments when alloc present.
  • Replace std::boxed::Box with alloc::boxed::Box in future types to support environments without the complete std library.

- Use hashbrown::HashMap instead of std::collections::HashMap for alloc compatibility.
- Remove standard library dependency from the async feature, enabling
  use in `no_std` environments when `alloc` present.
- Replace std::boxed::Box with alloc::boxed::Box in future types to support
  environments without the complete std library.
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