TheBlueMatt / rust-lightning-bitcoinrpc

See https://github.com/lightningdevkit/ldk-sample instead.
35 stars 19 forks source link

ERROR: Build #6

Closed jtimon closed 5 years ago

jtimon commented 5 years ago

With cargo build on https://github.com/jtimon/rust-lightning-bitcoinrpc/commit/272c91bd6449151c8e23c80d66e924a3dd6624c3 I'm getting:

Compiling lightning-net-tokio v0.0.1                                                                                                                                            
error[E0658]: use of unstable library feature 'integer_atomics' (see issue #32976)                                                                                                 
  --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/lightning-net-tokio-0.0.1/src/lib.rs:26:25                                                                          
   |                                                                                                                                                                               
26 | use std::sync::atomic::{AtomicU64, Ordering};                                                                                                                                 
   |                         ^^^^^^^^^                                                                                                                                             

error[E0658]: use of unstable library feature 'integer_atomics' (see issue #32976)                                                                                                 
  --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/lightning-net-tokio-0.0.1/src/lib.rs:31:20                                                                          
   |                                                                                                                                                                               
31 | static ID_COUNTER: AtomicU64 = AtomicU64::new(0);                                                                                                                             
   |                    ^^^^^^^^^                                                                                                                                                  

error[E0658]: use of unstable library feature 'integer_atomics' (see issue #32976)                                                                                                 
  --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/lightning-net-tokio-0.0.1/src/lib.rs:31:32                                                                          
   |                                                                                                                                                                               
31 | static ID_COUNTER: AtomicU64 = AtomicU64::new(0);                                                                                                                             
   |                                ^^^^^^^^^^^^^^                                                                                                                                 

error[E0658]: use of unstable library feature 'integer_atomics' (see issue #32976)                                                                                                 
   --> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/lightning-net-tokio-0.0.1/src/lib.rs:103:182                                                                       
    |                                                                                                                                                                              
103 |         let us = Arc::new(Mutex::new(Self { writer: Some(send_sink), event_notify, pending_read: Vec::new(), read_blocker: None, read_paused: false, need_disconnect: true, id: ID_COUNTER.fetch_add(1, Ordering::AcqRel) }));
    |                                                                                                                                                                                            ^^^^^^^^^

error: aborting due to 4 previous errors                                                                                                                                           

For more information about this error, try `rustc --explain E0658`.                                                                                                                
error: Could not compile `lightning-net-tokio`.                              

Sorry if it's something obvious on my side.

TheBlueMatt commented 5 years ago

Sadly I didn't bother making rust-lightning-net support older versions of rust (as it intends to use async io once that stabilizes anyway). Contributions welcome if you want to rewrite it using mio, otherwise just upgrade your rustc :).

On Jul 15, 2019, at 18:29, Jorge Timón notifications@github.com wrote:

With cargo build on jtimon@272c91b I'm getting:

Compiling lightning-net-tokio v0.0.1
error[E0658]: use of unstable library feature 'integer_atomics' (see issue #32976)
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/lightning-net-tokio-0.0.1/src/lib.rs:26:25
|
26 | use std::sync::atomic::{AtomicU64, Ordering};
| ^^^^^^^^^

error[E0658]: use of unstable library feature 'integer_atomics' (see issue #32976)
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/lightning-net-tokio-0.0.1/src/lib.rs:31:20
|
31 | static ID_COUNTER: AtomicU64 = AtomicU64::new(0);
| ^^^^^^^^^

error[E0658]: use of unstable library feature 'integer_atomics' (see issue #32976)
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/lightning-net-tokio-0.0.1/src/lib.rs:31:32
|
31 | static ID_COUNTER: AtomicU64 = AtomicU64::new(0);
| ^^^^^^^^^^^^^^

error[E0658]: use of unstable library feature 'integer_atomics' (see issue #32976)
--> /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/lightning-net-tokio-0.0.1/src/lib.rs:103:182
|
103 | let us = Arc::new(Mutex::new(Self { writer: Some(send_sink), event_notify, pending_read: Vec::new(), read_blocker: None, read_paused: false, need_disconnect: true, id: ID_COUNTER.fetch_add(1, Ordering::AcqRel) })); | ^^^^^^^^^

error: aborting due to 4 previous errors

For more information about this error, try rustc --explain E0658.
error: Could not compile lightning-net-tokio.
Sorry if it's something obvious on my side.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

jtimon commented 5 years ago

Oh, yeah, sorry for ir being something simple on my side and thanks. Closing.