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

Closed
wants to merge 1 commit into 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.
@mdeloof
Copy link
Owner

mdeloof commented Jan 1, 2025

I'm going to close this as I hope to merge no_std_async in the near future.

@mdeloof mdeloof closed this Jan 1, 2025
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.

2 participants