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
smallvec macro in no_std code #197
Comments
I haven't actually done this so forgive me if it's not on the right track: It looks like you need to macro_use extern crate std, since that's where vec! is defined. |
@debris According to https://stackoverflow.com/questions/51516773/how-to-use-vec-macro-in-a-no-std-library you need to add a |
Submitted a fix in #198. |
Use full path to vec! in smallvec! macro Fixes #197
Version 1.2.0 has been released with the fix included. |
hey! I'm trying to use
smallvec!
macro inno_std
library. Is it possible?code:
fails with:
I already imported
extern crate alloc
The text was updated successfully, but these errors were encountered: