Joylei / eip-rs

rseip - EIP&CIP client in pure Rust, for generic CIP and AB PLC
MIT License
49 stars 6 forks source link

Building the example from readme fails with unresolved import #1

Closed jcos1 closed 3 years ago

jcos1 commented 3 years ago

unresolved importfutures_util::SinkExt``

When cloning, the library itself builds ok though.

Joylei commented 3 years ago

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.