-
Notifications
You must be signed in to change notification settings - Fork 162
Removed support for no_std #109
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
Conversation
Kudos to @jhdcs for implementing support for |
b66213c
to
6cfa7a6
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.
Too bad things aren't working, but if we ever decide to re-add it, I hope that what I did could serve as a template.
I think so, if we want to add it back we know how to do that. |
rclrs/src/error.rs
Outdated
@@ -613,7 +611,7 @@ impl ToResult for rcl_ret_t { | |||
|
|||
#[cfg(test)] | |||
mod tests { | |||
use core::convert::TryFrom; | |||
use std::convert::TryFrom; |
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.
Should not be needed iirc, since we're on the 2021 Rust edition
rclrs/src/error.rs
Outdated
fmt::{self, Display}, | ||
}; | ||
use core_error::{self, Error}; | ||
use std::convert::TryFrom; |
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.
If @nnmm is correct about us not needing this for Rust 2021, then this line can be removed as well.
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 making the code cleaner :)
This PR removes support for
no_std
, by removing the dependency for thespin
crate and the correspondingcfg()
blocks.I recall @nnmm saying that
no_std
is broken (#88 (comment)) and I thought we might as well just remove support for it and revisit this in the future if we want to.