Skip to content
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

Merged
merged 3 commits into from
May 11, 2021
Merged

Set up GitHub Actions CI #10

merged 3 commits into from
May 11, 2021

Conversation

taiki-e
Copy link
Member

@taiki-e taiki-e commented May 11, 2021

Closes #8

Comment on lines +28 to +30
# 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
Copy link
Member Author

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filed #12

Comment on lines +38 to +39
# TODO: Currently, valuable cannot build without `alloc` feature
# because `Debug` impl of `dyn Enumerable` uses `format!` macro.
Copy link
Member Author

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.

let name = format!("{}::{}", self.name, variant.name());

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();

Copy link
Member

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 👍

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filed #11

@taiki-e taiki-e requested a review from carllerche May 11, 2021 13:43
@carllerche carllerche merged commit f9f7939 into master May 11, 2021
@taiki-e taiki-e deleted the taiki-e/github-actions branch May 11, 2021 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setup CI
2 participants