You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @aep and @jamesmunns! Thanks for reporting this. It appears to be a bug in curve25519-dalek, which this crate depends upon. curve25519-dalek depends upon byteorder for both buildtime and runtime, and I was able to compile byteorder with cargo build -j1 --no-default-features --target thumbv7em-none-eabihf. I think it may have something to do with curve25519-dalek's two-stage build process where cargo isn't passing either the correct flags or targets to both build stages? (cc/ @hdevalence)
Hi @aep and @jamesmunns! We think we've experienced curve25519-dalek's two-stage build.rs script causing cross compilation issues elsewhere, and we've made a ticket (dalek-cryptography/curve25519-dalek#217) for replacing it with something friendlier. I'm guessing you're still hitting this issue?
If you remove the dev-dependencies which aren't no_std-compatible from dalek-cryptography/curve25519-dalek#187, and add default-features = false to rand here, it's possible to compile for thumb targets.
I'd wager that due to rust-lang/cargo#4866 on mainstream/desktop targets no_std builds aren't actually no_std :)
Activity
aep commentedon Aug 21, 2018
cc @jamesmunns
jamesmunns commentedon Aug 21, 2018
Context: We are considering trying to use ed25519 in a microcontroller context.
It looks like the dependency on
bincodehas a hardstddependency: bincode-org/bincode#189[-]no_std depends on rand[/-][+]no_std depends on bincode[/+]jamesmunns commentedon Aug 21, 2018
It also seems to complain about
byteorder, but from a first glance I can't understand why (you specify no default features):isislovecruft commentedon Sep 6, 2018
Hi @aep and @jamesmunns! Thanks for reporting this. It appears to be a bug in curve25519-dalek, which this crate depends upon.
curve25519-dalekdepends uponbyteorderfor both buildtime and runtime, and I was able to compile byteorder withcargo build -j1 --no-default-features --target thumbv7em-none-eabihf. I think it may have something to do withcurve25519-dalek's two-stage build process where cargo isn't passing either the correct flags or targets to both build stages? (cc/ @hdevalence)isislovecruft commentedon Dec 24, 2018
Hi @aep and @jamesmunns! We think we've experienced
curve25519-dalek's two-stagebuild.rsscript causing cross compilation issues elsewhere, and we've made a ticket (dalek-cryptography/curve25519-dalek#217) for replacing it with something friendlier. I'm guessing you're still hitting this issue?aep commentedon Dec 31, 2018
@isislovecruft thanks. Yeah, still doesn't compile for no-std.
tarcieri commentedon Jan 1, 2019
This is an interesting looking tool for verifying no_std-compatibility https://github.com/hobofan/cargo-nono
nickray commentedon Jan 27, 2019
If you remove the dev-dependencies which aren't no_std-compatible from dalek-cryptography/curve25519-dalek#187, and add
default-features = falsetorandhere, it's possible to compile for thumb targets.I'd wager that due to rust-lang/cargo#4866 on mainstream/desktop targets no_std builds aren't actually no_std :)
isislovecruft commentedon Jul 14, 2020
Hi @aep! Are you still hitting issues with no_std? If not, please feel free to reopen this issue (I'm trying to close out old bug reports).
aep commentedon Jul 14, 2020
We don't use rust anymore sorry. Closing sounds good. Don't think many people care about nostd anyway. :)
nickray commentedon Jul 16, 2020
Hey! 😅