Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Conversation

@justinmoon
Copy link

Use core::convert instead of std::convert

Use `core::convert` instead of `std::convert`
@apoelstra
Copy link
Member

Why isn't CI catching this?

I will PR to switch to github actions, and redo our scripts and make them work. Unfortunately the build is currently failing in a few ways so it may be a bit of work.

@elichai
Copy link
Member

elichai commented Nov 29, 2020

Why isn't CI catching this?

Because we only use this macro in tests, where std is enabled anyway.
we should use this macro to create a private type that we don't use or export, just so it will test this outside of tests
(ie. mod private {hash_newtype!(__testType, ::sha256d::Hash, 32, doc="test")})

@elichai
Copy link
Member

elichai commented Dec 7, 2020

small note, alloc only and no-std are distinctly different

@justinmoon justinmoon marked this pull request as draft December 12, 2020 02:53
@justinmoon
Copy link
Author

Converting this to draft for now. I'm starting to add other stuff to get rust-bitcoin working on real MCUs.

@apoelstra
Copy link
Member

can you rebase on current master? In #109 we did a fair bit of code cleanup including some nostd fixes.

@RCasatta
Copy link
Contributor

RCasatta commented Apr 8, 2021

I see bare-io is now called core2 and from the badge, it looks it requires 1.47+

Copy link
Contributor

@dr-orlovsky dr-orlovsky left a comment

Choose a reason for hiding this comment

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

What is the current status on this taking into account all other work on no_std with bringing core2 support?

#[macro_use] mod util;
#[macro_use] pub mod serde_macros;
#[cfg(any(test, feature = "std"))] mod std_impls;
pub mod impls;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why we need this to be pub? It does not define any types to export

@apoelstra
Copy link
Member

apoelstra commented Jun 17, 2021

cc @justinmoon I think we've decided to go with core2 rather than bare-io, see recently-merged #128 and #130.

Should we close this PR or would you like us to revisit it?

@TheBlueMatt
Copy link
Member

TheBlueMatt commented Jun 17, 2021 via email

@apoelstra
Copy link
Member

Closing. Feel free to reopen @justinmoon if you'd like us to revisit this.

@apoelstra apoelstra closed this Jul 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants