mnetship / ratsio

NATS & NATS Streaming Server client library for Rust
MIT License
50 stars 22 forks source link

WIP: Migration to futures 0.3 and tokio. #9

Closed humb1t closed 4 years ago

humb1t commented 4 years ago

Migration to async/awaited versions of futures and tokio.

humb1t commented 4 years ago
src/codec.rs:5:17: error[E0432]: unresolved import `tokio_util::codec`
src/net/connection_inner.rs:7:17: error[E0432]: unresolved import `tokio_util::codec`
src/net/connection.rs:236:42: error[E0433]: failed to resolve: use of undeclared type or module `Loop`
src/net/connection.rs:242:46: error[E0433]: failed to resolve: use of undeclared type or module `Loop`
src/nats_client/client.rs:120:44: error[E0433]: failed to resolve: use of undeclared type or module `Loop`
src/nats_client/client.rs:127:55: error[E0433]: failed to resolve: use of undeclared type or module `Loop`
src/net/connection.rs:231:23: error[E0425]: cannot find function `loop_fn` in this scope
src/nats_client/client.rs:117:9: error[E0425]: cannot find function `loop_fn` in this scope

tokio codecs will be fixed soon - I enabled codec feature, but some problems with my local builds to enable cfg module

mnetship commented 4 years ago

Hi Nikita,

Thank you for your interest in ratsio, I have already started to migrate to futures 0.3, the code is not ready yet. The futures 0.3 landscape is not really stable at the moment. I am hopeful that I will have something working by the 12th of Jan.

Kind Regards, Michael

On 05 Jan 2020, at 01:12, Nikita Puzankov notifications@github.com wrote:

src/codec.rs:5:17: error[E0432]: unresolved import tokio_util::codec src/net/connection_inner.rs:7:17: error[E0432]: unresolved import tokio_util::codec src/net/connection.rs:236:42: error[E0433]: failed to resolve: use of undeclared type or module Loop src/net/connection.rs:242:46: error[E0433]: failed to resolve: use of undeclared type or module Loop src/nats_client/client.rs:120:44: error[E0433]: failed to resolve: use of undeclared type or module Loop src/nats_client/client.rs:127:55: error[E0433]: failed to resolve: use of undeclared type or module Loop src/net/connection.rs:231:23: error[E0425]: cannot find function loop_fn in this scope src/nats_client/client.rs:117:9: error[E0425]: cannot find function loop_fn in this scope tokio codecs will be fixed soon - I enabled codec feature, but some problems with my local builds to enable cfg module

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mnetship/ratsio/pull/9?email_source=notifications&email_token=ABDHX7SE2NVXHZ5TZF56QTLQ4EJXJA5CNFSM4KCVVZPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIDCJMI#issuecomment-570827953, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDHX7QJHDCIPED2XLA7Y7LQ4EJXJANCNFSM4KCVVZPA.