Skip to content

Do not depend on crate alloc in no_std mode, by refactoring the use of the Perm type.#2088

Merged
jhjourdan merged 1 commit intomasterfrom
no_std_no_alloc
May 4, 2026
Merged

Do not depend on crate alloc in no_std mode, by refactoring the use of the Perm type.#2088
jhjourdan merged 1 commit intomasterfrom
no_std_no_alloc

Conversation

@jhjourdan
Copy link
Copy Markdown
Collaborator

Renamed Container into PermTarget, and add an associated type PermPayload, which lets the definition of PermTarget choose the characteristics of the Perm<...> type. In particular, it is unsized only for pointer types, so that we do not need to use Box<Perm<...>> everywhere.

@jhjourdan jhjourdan merged commit 709b33b into master May 4, 2026
9 checks passed
@jhjourdan jhjourdan deleted the no_std_no_alloc branch May 4, 2026 23:09
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