summa-tx / coins

Rust implementations of BIP32/39 and Ledger device comms
Other
92 stars 31 forks source link

fix(ledger): enable "rt" tokio feature #127

Closed DaniPopes closed 10 months ago

DaniPopes commented 10 months ago
    Checking coins-ledger v0.9.0
error[E0433]: failed to resolve: could not find `Builder` in `runtime`
  --> /home/doni/.cargo/registry/src/index.crates.io-6f17d22bba15001f/coins-ledger-0.9.0/src/transports/native/mod.rs:54:38
   |
54 |             let rt = tokio::runtime::Builder::new_current_thread()
   |                                      ^^^^^^^ could not find `Builder` in `runtime`
   |
help: consider importing this struct
   |
1  + use std::thread::Builder;
   |
help: if you import `Builder`, refer to it directly
   |
54 -             let rt = tokio::runtime::Builder::new_current_thread()
54 +             let rt = Builder::new_current_thread()
   |

error[E0603]: module `runtime` is private
   --> /home/doni/.cargo/registry/src/index.crates.io-6f17d22bba15001f/coins-ledger-0.9.0/src/transports/native/mod.rs:54:29
    |
54  |             let rt = tokio::runtime::Builder::new_current_thread()
    |                             ^^^^^^^ private module
    |
note: the module `runtime` is defined here
   --> /home/doni/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.34.0/src/lib.rs:523:5
    |
523 |     pub(crate) mod runtime;
    |     ^^^^^^^^^^^^^^^^^^^^^^