-
-
Notifications
You must be signed in to change notification settings - Fork 183
Closed
Description
I personally do not like the exts feature. With a name such as alloc feature, it is more clear what one gets. With exts not. Additionally, at the moment, people do not get what they expect from alloc feature. uefi-rs doesn't follow the conventions of the Rust ecosystem.
From a short investigation, we currently use the following features:
alloc- adds a
#[global_allocator]but nothing more
- adds a
exts- activates the
alloccrate from the standard library distribution - activates all functionality that uses allocations
- activates the
My suggestion is:
- rename
allocmodule and feature toglobal_allocator- this also allows us to get rid of the weird
alloc_apirename and usealloceverywhere
- this also allows us to get rid of the weird
- rename feature
extstoalloc(as it is the default in the ecosystem, i.e., in other popular crates) - update all documentation
Additionally, we should think about whether it makes sense to add a few features with a more meaningful name and let them depend on the new alloc feature. However, at a first glance, this may be overkill at the moment.
timrobertsdev, nicholasbishop and GabrielMajeri
Metadata
Metadata
Assignees
Labels
No labels