-
Notifications
You must be signed in to change notification settings - Fork 229
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
Mark unstable modules, make macros
private
#2900
Conversation
macros
private
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll review the code separately soon, but for now I just generated the docs to take a look around.
I believe the following modules still need to be unstable:
- efuse
- asynch
- lp_core
The clock
changes are handled in so we don't need to worry about that one: #2899
Oops, forgot about them. Then |
a75c65f
to
40d263d
Compare
|
What's the reason to make all macros private? Part of that module is public reexports, and we're now reexporting reexported macros? |
After a long fight me and @bugadani decided to leave things as they are because another options (pub unstable macros module) don't seem to be working (also, macros are cursed) |
40d263d
to
6a8a003
Compare
ddf635d
to
f4cfbe0
Compare
UPD: marked Also, it doesn't make sense to stabilize UPD: #[instability::unstable]
#[cfg_attr(not(feature = "unstable"), allow(unused))]
pub use procmacros::{handler, ram}; seems to be resolving the issue with |
|
Exactly, that's what I'm talking about 😅 Which means, we need to either
|
f4cfbe0
to
69d154d
Compare
esp-hal-procmacros is basically tied to esp-hal, the only reason they're in separate a crate is due to compiler limitations, so we'll actually need to make esp-hal-procmacros 1.0 too. I hadn't considered this initially, but this should be fine though, because everything that's in there can also be marked as unstable, and we can do the following:
I suggest we do this in a follow up PR though, as this will involve a bunch more changes. I'll open an issue for this. |
69d154d
to
ce49ee6
Compare
6588f54
to
6f583a8
Compare
6f583a8
to
ce4b5a0
Compare
ce4b5a0
to
180ea9f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks! Some of the smaller things can be tackled outside this PR, but let's get this merged before we hit conflict hell.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this!
Description
closes #2499
potentially closes #2921
Marked the rest of unstable modules.
Makes
macros
module private (otherwise, it'll cause a huge and noisy diff likecrate::before_snippet!
->crate::macros::before_snippet
and so on) as it was public only to reexport a couple of things fromprocmacros
.Adding small "default" branch in
esp_hal::init
function (caused by instability ofwatchdog
andpsram
items ofConfig
)Since
rom
is also unstable, we need that bad-lookingpub use
construction forregi2c_write
andregi2c_write_mask
, which will be removed whenrom
is stabilized