use alloc::boxed::Box instead of the builtin Box#296
Conversation
|
aparently that broke std, im working on fixing that |
|
now it was fixed |
A4-Tacks
left a comment
There was a problem hiding this comment.
As a proc-macro library, no_std should be meaningless
|
not really, check #295 , its generated codes refrences Box directly instead of alloc::boxed::Box, which doesnt work in no_std environment |
|
There is a method similar to And introducing new alloc feature doesn't seem necessary |
|
when i just do |
|
Part of the code can be expanded to But your PR is still breaking, because different dependencies in workspace will union features, which may potentially disrupt dependencies Like:
So async-trait enable |
|
In summary, the old code works well and does not require consideration of absolute paths. And consider the possibility of |
|
well thats basically the problem, the user isnt supposed to import |
|
ok i realized im dumb or smth, closing ig |
uses
alloc::boxed::Boxinstead ofBoxthis ensures that this crate works on
no_stdenvironmentfixes #295