Skip to content

MacOS build via cargo is broken #22

Closed
@U007D

Description

@U007D

cargo install gitoxide yields:

...
   Compiling crosstermion v0.3.2
   Compiling prodash v9.0.0
error[E0425]: cannot find function `select_all` in module `futures_util::stream`
   --> /Users/sergibli/.cargo/registry/src/github.com-1ecc6299db9ec823/prodash-9.0.0/src/render/tui/engine.rs:162:48
    |
162 |         let mut events = futures_util::stream::select_all(vec![
    |                                                ^^^^^^^^^^ not found in `futures_util::stream`

error[E0599]: no method named `boxed` found for struct `futures_util::stream::Map<impl futures_core::Stream, [closure@/Users/sergibli/.cargo/registry/src/github.com-1ecc6299db9ec823/prodash-9.0.0/src/render/tui/engine.rs:163:44: 163:59]>` in the current scope
   --> /Users/sergibli/.cargo/registry/src/github.com-1ecc6299db9ec823/prodash-9.0.0/src/render/tui/engine.rs:163:61
    |
163 |             ticker(duration_per_frame).map(|_| Event::Tick).boxed(),
    |                                                             ^^^^^ method not found in `futures_util::stream::Map<impl futures_core::Stream, [closure@/Users/sergibli/.cargo/registry/src/github.com-1ecc6299db9ec823/prodash-9.0.0/src/render/tui/engine.rs:163:44: 163:59]>`
    |
    = help: items from traits can only be used if the trait is in scope
    = note: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
            candidate #1: `use futures_lite::future::FutureExt;`
            candidate #2: `use futures_lite::stream::StreamExt;`
            candidate #3: `use futures_lite::FutureExt;`
            candidate #4: `use futures_lite::StreamExt;`

error[E0599]: no method named `boxed` found for struct `futures_util::stream::Map<impl futures_core::Stream, fn(crosstermion::input::Key) -> render::tui::engine::Event {render::tui::engine::Event::Input}>` in the current scope
   --> /Users/sergibli/.cargo/registry/src/github.com-1ecc6299db9ec823/prodash-9.0.0/src/render/tui/engine.rs:164:43
    |
164 |             key_receive.map(Event::Input).boxed(),
    |                                           ^^^^^ method not found in `futures_util::stream::Map<impl futures_core::Stream, fn(crosstermion::input::Key) -> render::tui::engine::Event {render::tui::engine::Event::Input}>`
    |
    = help: items from traits can only be used if the trait is in scope
    = note: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
            candidate #1: `use futures_lite::future::FutureExt;`
            candidate #2: `use futures_lite::stream::StreamExt;`
            candidate #3: `use futures_lite::FutureExt;`
            candidate #4: `use futures_lite::StreamExt;`

error[E0599]: no method named `boxed` found for type parameter `impl futures_core::Stream<Item = Event> + Send` in the current scope
   --> /Users/sergibli/.cargo/registry/src/github.com-1ecc6299db9ec823/prodash-9.0.0/src/render/tui/engine.rs:165:20
    |
165 |             events.boxed(),
    |                    ^^^^^ method not found in `impl futures_core::Stream<Item = Event> + Send`
    |
    = help: items from traits can only be used if the trait is in scope
    = note: the following traits are implemented but not in scope; perhaps add a `use` for one of them:
            candidate #1: `use futures_lite::future::FutureExt;`
            candidate #2: `use futures_lite::stream::StreamExt;`
            candidate #3: `use futures_lite::FutureExt;`
            candidate #4: `use futures_lite::StreamExt;`

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0425, E0599.
For more information about an error, try `rustc --explain E0425`.
error: could not compile `prodash`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `gitoxide v0.4.0`, intermediate artifacts can be found at `/var/folders/2h/z_3xs03s58sb4qc9c1x8nj1w0000gq/T/cargo-installZn5MqM`

Caused by:
  build failed

OSX 10.15.6
cargo 1.46.0 (149022b1d 2020-07-17)
rustc 1.46.0 (04488afe3 2020-08-24)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions