-
Notifications
You must be signed in to change notification settings - Fork 161
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
Discuss Crate Features #560
Comments
What do you think about my suggestion @GabrielMajeri @nicholasbishop ? |
For what it's worth, I think this is a great change. In addition to bringing us in line with the greater ecosystem and being more intuitive for users, this could allow us and our users greater flexibility when developing or using the crate. |
I like this proposal. I recall being confused by what the Only question I have is whether the ecosystem has a convention for what to call the |
Not that I'm aware of. I guess that the amount of publicly available implementations of |
Yep that makes sense. |
There wasn't a huge amount of planning/foresight when we had defined those features, so they can definitely be improved 😅 In fact, considering PRs like #552, it might be a good idea to go beyond renaming the features and instead switch to a much more granular project structure:
In this case, we won't even need a |
Alright. I'm looking forward to your comments on #561
Hm, I do not have a strong opinion here but here's one thing. If we publish more crates in this manner, say However, this is a general problem of the ecosystem on crates.io. On the other hand, seems like we create/maintain the standard UEFI library and there are no serious competitors. I have one specific thing in mind here - https://crates.io/crates/printk - its name sounds like it is a universal kernel space logger. But in fact, it is a logger that works with the |
Isn't the Funny story: we weren't, in fact, the first owners of the
Precisely my point. There's the
Yeah, that's definitely very misleading. But it's an innate disadvantage of the first-come, first-served naming policy followed on crates.io. One can only hope that the crate will eventually either be renamed, or expanded to support non- |
I do intend to add some thoughts to both these issues, but things have been busy so haven't had a chance to yet. Hopefully soon :) |
I personally do not like the
exts
feature. With a name such asalloc
feature, it is more clear what one gets. Withexts
not. Additionally, at the moment, people do not get what they expect fromalloc
feature.uefi-rs
doesn't follow the conventions of the Rust ecosystem.From a short investigation, we currently use the following features:
alloc
#[global_allocator]
but nothing moreexts
alloc
crate from the standard library distributionMy suggestion is:
alloc
module and feature toglobal_allocator
alloc_api
rename and usealloc
everywhereexts
toalloc
(as it is the default in the ecosystem, i.e., in other popular crates)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.The text was updated successfully, but these errors were encountered: