Skip to content

Phoenix.Channels: Failing to build #17

@cplotter

Description

@cplotter

I am new to rust and want to play with this library to build a small cli client but I am running into issues building this crate.

cargo run -- "ws://localhost:4000/socket" secret earth
warning: unused manifest key: build
   Compiling phoenix_channels_client v0.1.2
error[E0425]: cannot find function `consume_budget` in module `task`
   --> /home/tru1ock/.cargo/registry/src/index.crates.io-6f17d22bba15001f/phoenix_channels_client-0.1.2/src/channel.rs:519:23
    |
519 |                 task::consume_budget().await
    |                       ^^^^^^^^^^^^^^ not found in `task`
    
    rustc 1.71.0-nightly (9ecda8de8 2023-04-30
    
    [package]
name = "client"
version = "0.1.0"
edition = "2021"


[dependencies]
phoenix_channels_client = { version = "0.1.2", features = ["nightly"] }
clap = { version = "4.2.5", features = ["derive"] }

[build]
rustflags = ["--cfg", "tokio_unstable"]

Any help would be much appreciated!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

On Hold

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions