Ragnaroek / mithril

Pure Rust Monero Miner
GNU General Public License v3.0
231 stars 40 forks source link

add #![feature(i128_type)] to the crate attributes to enable #14

Closed DogLi closed 6 years ago

DogLi commented 6 years ago

build failed with command: cargo build --release on macos, the version of rust is:

$ rustup show                                                                                                                                                             *[master]
Default host: x86_64-apple-darwin

installed toolchains
--------------------

stable-x86_64-apple-darwin
nightly-x86_64-apple-darwin (default)

active toolchain
----------------

nightly-x86_64-apple-darwin (default)
rustc 1.25.0-nightly (ee220daca 2018-01-07)
Compiling config v0.8.0
   Compiling bandit v0.11.1
   Compiling mithril v0.7.0 (file:///Users/yuanlinfeng/Work/Monero/mithril)
error: 128-bit type is unstable (see issue #35118)
  --> src/byte_string.rs:61:26
   |
61 | pub fn u128_to_string(u: u128) -> String {
   |                          ^^^^
   |
   = help: add #![feature(i128_type)] to the crate attributes to enable

error: 128-bit type is unstable (see issue #35118)
   --> src/cryptonight/hash.rs:134:14
    |
134 |     let r0 = u128::from(a.0);
    |              ^^^^^^^^^^
    |
    = help: add #![feature(i128_type)] to the crate attributes to enable

error: 128-bit type is unstable (see issue #35118)
   --> src/cryptonight/hash.rs:135:14
    |
135 |     let r1 = u128::from(b.0);
    |              ^^^^^^^^^^
    |
    = help: add #![feature(i128_type)] to the crate attributes to enable

error: 128-bit type is unstable (see issue #35118)
  --> src/u64x2.rs:65:29
   |
65 |     pub fn to_u128(self) -> u128 {
   |                             ^^^^
   |
   = help: add #![feature(i128_type)] to the crate attributes to enable

error: 128-bit type is unstable (see issue #35118)
  --> src/u64x2.rs:66:21
   |
66 |         let mut r = u128::from(self.1);
   |                     ^^^^^^^^^^
   |
   = help: add #![feature(i128_type)] to the crate attributes to enable

error: 128-bit type is unstable (see issue #35118)
  --> src/u64x2.rs:68:14
   |
68 |         r |= u128::from(self.0);
   |              ^^^^^^^^^^
   |
   = help: add #![feature(i128_type)] to the crate attributes to enable

error: aborting due to 6 previous errors

error: Could not compile `mithril`.

To learn more, run the command again with --verbose.
DogLi commented 6 years ago

It's worked when I update the rustc.

Ragnaroek commented 6 years ago

Yes, it was made stable in one of the latest rust builds