Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building the example from readme fails with unresolved import #1

Closed
jcos1 opened this issue Oct 27, 2021 · 1 comment
Closed

Building the example from readme fails with unresolved import #1

jcos1 opened this issue Oct 27, 2021 · 1 comment

Comments

@jcos1
Copy link

jcos1 commented Oct 27, 2021

unresolved import futures_util::SinkExt``

When cloning, the library itself builds ok though.

@Joylei
Copy link
Owner

Joylei commented Oct 28, 2021

The example in the readme is just for demo. You can look at the testing part of src/client/client.rs for the full working example.
Besides, you need some additional dependencies in your Cargo.toml:

tokio={version = "1", features = ["full"]}
futures-util="0.3"
byteorder="1"

I will check in some examples later.

@Joylei Joylei closed this as completed Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants