rethinkdb / rethinkdb-rs

A native RethinkDB driver written in Rust
Apache License 2.0
210 stars 27 forks source link

Error during execution of `cargo metadata`: error: could not find `Cargo.toml` #50

Closed jaswdr closed 4 years ago

jaswdr commented 4 years ago

After making an clean setup on Ubuntu 18.04 and trying to build the project the message bellow appears:

$ cargo make
[cargo-make] INFO - cargo make 0.28.0
[cargo-make] INFO - External file not found or is not a file, skipping.
[cargo-make] INFO - Build File: Makefile.toml
[cargo-make] INFO - Task: default
[cargo-make] INFO - Profile: development
[cargo-make] INFO - Running Task: init
[cargo-make] INFO - Running Task: pre-format
[cargo-make] INFO - Running Task: format
[cargo-make] INFO - Execute Command: "cargo" "fmt"
Error during execution of `cargo metadata`: error: could not find `Cargo.toml` in `/home/jaswdr/rethinkdb` or any parent directory

cargo-fmt 1.4.12
This utility formats all bin and lib files of the current crate using rustfmt.

USAGE:
    cargo fmt [FLAGS] [OPTIONS] [-- <rustfmt-options>...]

FLAGS:
        --all        Format all packages (only usable in workspaces)
    -q, --quiet      No output printed to stdout
    -v, --verbose    Use verbose output
        --version    Print rustfmt version and exit

OPTIONS:
        --manifest-path <manifest-path>      Specify path to Cargo.toml
        --message-format <message-format>    Specify message-format: short|json|human
    -p, --package <package>...               Specify package to format (only usable in workspaces)

ARGS:
    <rustfmt-options>...    Options passed to rustfmt

[cargo-make] ERROR - Error while executing command, exit code: 1
[cargo-make] WARN - Build Failed.

Platform I'm building on:

Ubuntu 18.4.1 x86_64

What I expected to happen:

Build finish successfully

What actually happened:

Stops on error

How to reproduce the problem:

Other informations

cargo version: cargo 1.43.0-beta (bda50510d 2020-03-02) rustfmt version: rustfmt 1.4.12-beta (a828ffe 2020-03-11)

srh commented 4 years ago

@jaswdr Did you mean to post this in https://github.com/rethinkdb/rethinkdb-rs ?

zicklag commented 4 years ago

That's odd. @jaswdr Are you able to see the Cargo.toml file? The cargo make is actually failing for me too, but it is failing once it gets to the compile step because there is a problem building with --all-features which happens after the cargo fmt.

You can just build the project with cargo build if you need to.