-
Notifications
You must be signed in to change notification settings - Fork 20
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
Set up GitHub Actions CI #10
Conversation
# TODO: Currently, valuable cannot build with targets that do not have atomic CAS. | ||
# We should port https://github.com/rust-lang/futures-rs/pull/2400. | ||
# - thumbv6m-none-eabi |
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.
The fix of this is in my other branch (be24a36), but it is bigger than this PR, so perhaps separate PR would be preferable.
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.
filed #12
# TODO: Currently, valuable cannot build without `alloc` feature | ||
# because `Debug` impl of `dyn Enumerable` uses `format!` macro. |
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.
This is mainly due to the following two lines.
valuable/valuable/src/enumerable.rs
Line 109 in 7640b04
let name = format!("{}::{}", self.name, variant.name()); |
valuable/valuable/src/enumerable.rs
Line 124 in 7640b04
let name = format!("{}::{}", self.name, variant.name()); |
@carllerche: Do you think it's ok to change it to print only variant name when alloc feature is disabled? (like the following)
#[cfg(feature = "alloc")]
let name = format!("{}::{}", self.name, variant.name());
#[cfg(not(feature = "alloc"))]
let name = variant.name();
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.
yeah... we can probably tweak that. I'm fine w/ your proposal. Another PR 👍
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.
filed #11
Closes #8