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
alloc
crate from the standard library distribution - activates all functionality that uses allocations
- activates the
My suggestion is:
- rename
alloc
module and feature toglobal_allocator
- this also allows us to get rid of the weird
alloc_api
rename and usealloc
everywhere
- this also allows us to get rid of the weird
- rename feature
exts
toalloc
(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.
Metadata
Metadata
Assignees
Labels
No labels