0b01 / tectonicdb

Database for L2 orderbook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Building 'tectonic-server' fails if dependency 'reqwest' is not included

gsalaz98 opened this issue · comments

user@computer:~/tectonicdb$ cargo build --bin tectonic-server

.
.
.
error[E0599]: no function or associated item named `new_v4` found for type `uuid::Uuid` in the current scope
   --> src/bin/server/state.rs:423:42
    |
423 |                 fname: format!("{}--{}", Uuid::new_v4(), store_name).into(),
    |                                          ^^^^^^^^^^^^ function or associated item not found in `uuid::Uuid`

error[E0599]: no function or associated item named `new_v4` found for type `uuid::Uuid` in the current scope
   --> src/bin/server/state.rs:658:47
    |
658 |                 fname: format!("{}--default", Uuid::new_v4()).into(),
    |                                               ^^^^^^^^^^^^ function or associated item not found in `uuid::Uuid`

error[E0599]: no function or associated item named `new_v4` found for type `uuid::Uuid` in the current scope
   --> src/bin/server/state.rs:672:46
    |
672 |                     fname: format!("{}--{}", Uuid::new_v4(), store_name).into(),
    |                                              ^^^^^^^^^^^^ function or associated item not found in `uuid::Uuid`

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0599`.
error: Could not compile `tectonicdb`.
  • rustc version: rustc 1.27.0-nightly (ac3c2288f 2018-04-18)
  • cargo version: cargo 1.26.0-nightly (008c36908 2018-04-13)

By disabling the [features] tag in Cargo.toml, the dependency reqwest is never included, and results in a build failure when trying to build binary tectonic-server.