-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
Support no_std on targets without stdlib #268
Comments
The time_macros crate still depends on stdlib. As it's a proc macro, it should be targeting the host, not the target. I'm not familiar with the Ultimately this should work today, so long as you have a global allocator. If you don't, that's being tracked in #249. It is standard practice for proc macros to rely on stdlib, though. |
Thanks for your reply, |
It looks like the relevant repo is rust-osdev/cargo-xbuild. Possibly related might by rust-osdev/cargo-xbuild#10 and rust-lang/cargo#7915. Without knowing exactly how #243 is an unrelated issue, and was fixed a while back. |
Thank you for the links and researching this issue, like this comment rust-osdev/cargo-xbuild#10 (comment), I wasn't able to fix it with That seems acceptable until the situation evolve for |
Hello, I'm coding a toy OS (https://github.com/vinc/moros) and I'd like to use the
time
crate to provide adate
command. I keep track of time in the kernel so with this crate it'd just be a matter of doing the following:The only problem is that I can't compile
time-macros
for my target:With the following in
Cargo.toml
:This problem has been previously mentioned in a closed issue with a solution that has not been implemented at the moment: #243 (comment)
I'm creating this new issue so that we can track it.
The text was updated successfully, but these errors were encountered: