Skip to content

Unable to build tokio-postgres 0.7.7 #956

Closed
@gerob311

Description

@gerob311

I'm using rust-postgres as a dependency for my project, and I'm getting the following error when I build my project.

error[E0432]: unresolved imports `futures_util::Future`, `futures_util::Stream`
 --> /Users/gerob/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-postgres-0.7.7/src/connect.rs:7:37
  |
7 | use futures_util::{future, pin_mut, Future, FutureExt, Stream};
  |                                     ^^^^^^             ^^^^^^ no `Stream` in the root
  |                                     |
  |                                     no `Future` in the root
  |
help: a similar name exists in the module
  |
7 | use futures_util::{future, pin_mut, future, FutureExt, Stream};
  |                                     ~~~~~~
help: a similar name exists in the module
  |
7 | use futures_util::{future, pin_mut, Future, FutureExt, stream};
  |   

There seems to be similar problems with the case of imports of Stream and Future in

  • binary_copy.rs
  • connect.rs
  • connect_raw.rs
  • conneciton.rs
  • copy_in.rs
  • copy_out.rs
  • query.rs
  • simple_query.rs

I'd expect that a released crate would build so, what might I be doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions