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

More context work #161

Merged
merged 1 commit into from
Jun 10, 2024
Merged

More context work #161

merged 1 commit into from
Jun 10, 2024

Conversation

udoprog
Copy link
Owner

@udoprog udoprog commented Jun 10, 2024

This simplifies how contexts are used, since there now doesn't have to be a distinction between system and stack contexts.

This is done by introducing two methods in the musli::context module which shoudl be used by default:

  • musli::context::new() - which can be used if the alloc feature is enabled and uses the system allocator by default.
  • musli::context::with_alloc(alloc) - which can be used with any musli allocator.
  • Make System allocator a simpler extension of the system allocator by only providing RawVec-like capabilities.

@udoprog udoprog added the enhancement New feature or request label Jun 10, 2024
@udoprog udoprog force-pushed the more-context branch 6 times, most recently from f0169b5 to c20791f Compare June 10, 2024 13:50
@udoprog udoprog merged commit ab6fe0f into main Jun 10, 2024
22 checks passed
@udoprog udoprog deleted the more-context branch June 10, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant