-
Notifications
You must be signed in to change notification settings - Fork 140
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
strum-macros 0.26.3 breaks no_std
build
#359
Comments
This was unintentional. Thank you for pointing it out, I've put out a candidate fix that I'll merge later today if everything seems correct. |
Thank you! |
Another breaking change is that #[derive(Display)]
enum SyntaxKind {
#[strum(serialize = "`{`")]
LCurly,
} Any |
Thanks a lot! |
With 0.26.3, the emitted code when using
derive(strum::Display)
usesformat!
unconditionally. This requires the surrounding code touse format::alloc;
, which seems like an unfortunate breaking change to me.Example
main.rs
:Sample
Cargo.toml
:If you downgrade to
=0.26.2
the build works, otherwise it aborts with:I think it's okay to require the surrounding
no_std
code touse alloc::format;
when usingstrum
, but it would be great if this requirement could come with a new major version (0.27) instead.The text was updated successfully, but these errors were encountered: