Skip to content

Subtle2.3.0 cannot be compiled on my machine #77

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

Closed
Fancyflame opened this issue Nov 2, 2020 · 5 comments
Closed

Subtle2.3.0 cannot be compiled on my machine #77

Fancyflame opened this issue Nov 2, 2020 · 5 comments

Comments

@Fancyflame
Copy link

This error occurred when I try to complile blake2 on Termux on my Android device:
IMG_20201102_213331
I think there is nothing wrong with my device because I can compile other crates successfully, maybe this is a bug?

@Fancyflame Fancyflame changed the title Subtle2.3.0 cannot compile on my machine Subtle2.3.0 cannot be compiled on my machine Nov 2, 2020
@hdevalence
Copy link
Contributor

subtle requires Rust 1.41, which relaxed the restrictions on orphan rules to make the trait impls we need possible. So, if you're using a Rust older than 1.41, updating your Rust should fix this problem.

@Fancyflame
Copy link
Author

Fancyflame commented Nov 5, 2020

subtle requires Rust 1.41, which relaxed the restrictions on orphan rules to make the trait impls we need possible. So, if you're using a Rust older than 1.41, updating your Rust should fix this problem.

I see, but unfortunately the highest version I could have on Android is rust 1.38.0, so I still have no idea about how to compile it on my device. But your comment helped me to aware this, thanks a lot.

@hdevalence
Copy link
Contributor

@Fancyflame subtle 2.2.x has a different MSRV policy, so you may be able to work around this issue by pinning subtle to 2.2.x rather than 2.3.0.

@isislovecruft
Copy link
Member

@Fancyflame If you installed your rust compiler with curl https://sh.rustup.rs -sSf | sh and added the targets for android with rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android then all the versions available to other targets should be available for android as well, and you can upgrade by doing rustup update.

@Fancyflame
Copy link
Author

@isislovecruft I know that, but I mean I use Rust on my android device, and rustup cannot install host for android neither because there is no host triple for android yet (probably it is because few would developing projects on Android device). I have solved this by installing a tiny Ubuntu in Termux and install rust in it. Rust and Subtle now can run in the tiny Ubuntu perfectly. :)

petrosagg added a commit to petrosagg/pubnub-rust that referenced this issue Jun 10, 2021
this is required to build subtle, see:
dalek-cryptography/subtle#77

Signed-off-by: Petros Angelatos <[email protected]>
petrosagg added a commit to petrosagg/pubnub-rust that referenced this issue Jun 10, 2021
rust >= 1.41 is required to build subtle, see:
dalek-cryptography/subtle#77

rust >= 1.42 is required for the stabilization of the matches! macro

Signed-off-by: Petros Angelatos <[email protected]>
petrosagg added a commit to petrosagg/pubnub-rust that referenced this issue Jun 10, 2021
rust >= 1.41 is required to build subtle, see:
dalek-cryptography/subtle#77

rust >= 1.42 is required for the stabilization of the matches! macro

rust >= 1.43 is required inclusion of usize::MAX required by socket2
which is required by hyper

Signed-off-by: Petros Angelatos <[email protected]>
petrosagg added a commit to petrosagg/pubnub-rust that referenced this issue Jun 10, 2021
rust >= 1.41 is required to build subtle, see:
dalek-cryptography/subtle#77

rust >= 1.42 is required for the stabilization of the matches! macro

rust >= 1.43 is required for inclusion of usize::MAX required by socket2
which is required by hyper

rust >= 1.46 is required to allow match and if statements inside const
expressions, which is required by socket2 which is required by hyper

Signed-off-by: Petros Angelatos <[email protected]>
650elx pushed a commit to pubnub/rust that referenced this issue Jun 28, 2021
* upgrade to tokio v1

Signed-off-by: Petros Angelatos <[email protected]>

* fix warning about renamed lint

Signed-off-by: Petros Angelatos <[email protected]>

* fix cargo fmt and cargo clippy warnings

Signed-off-by: Petros Angelatos <[email protected]>

* update base64 crate to 0.13

Signed-off-by: Petros Angelatos <[email protected]>

* update hmac and sha2 crates

Signed-off-by: Petros Angelatos <[email protected]>

* update derive builder to 0.10

Signed-off-by: Petros Angelatos <[email protected]>

* uritemplate is unmaintained, switch to uritemplate-next

Signed-off-by: Petros Angelatos <[email protected]>

* update minimum rust version in CI to 1.46

rust >= 1.41 is required to build subtle, see:
dalek-cryptography/subtle#77

rust >= 1.42 is required for the stabilization of the matches! macro

rust >= 1.43 is required for inclusion of usize::MAX required by socket2
which is required by hyper

rust >= 1.46 is required to allow match and if statements inside const
expressions, which is required by socket2 which is required by hyper

Signed-off-by: Petros Angelatos <[email protected]>

* ignore failing test due to missing CI credentials

Signed-off-by: Petros Angelatos <[email protected]>
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

No branches or pull requests

3 participants