Closed DAOCUONG closed 4 years ago
What version of tokio
are you using? It looks like you are using version 0.2. rants
version 0.3 requires tokio
0.1. The rants
master branch should work with tokio
0.2. I hope to put out rants
version 0.4 soon which will work with tokio
0.2.
thanks you for your response i tried to use master branch but still have error
Updating crates.io index
error: failed to select a version for mio
.
... required by package tokio v0.2.1
... which is depended on by rants v0.3.1 (https://github.com/davidMcneil/rants.git#7739743f)
... which is depended on by spacheckinrust v0.1.0 (/Users/velimir/Documents/Zentech/spacheckinrust)
versions that meet the requirements ^0.6.20
are: 0.6.21, 0.6.20
all possible versions conflict with previously selected packages.
previously selected package mio v0.6.19
... which is depended on by actix-server v0.6.1
... which is depended on by actix-testing v0.1.0
... which is depended on by actix-web v1.0.8
If you delete your Cargo.lock
and try and rebuild what happens?
delete cargo.lock works
Hi i have compile errors
error[E0432]: unresolved import
tokio::codec
--> /Users/velimir/.cargo/registry/src/github.com-1ecc6299db9ec823/rants-0.3.1/src/codec.rs:8:12 | 8 | use tokio::codec::Decoder; | ^^^^^ could not findcodec
intokio
error[E0432]: unresolved import
tokio::net::TcpStream
--> /Users/velimir/.cargo/registry/src/github.com-1ecc6299db9ec823/rants-0.3.1/src/types/state.rs:2:5 | 2 | use tokio::net::TcpStream; | ^^^^^^^^^^^^^^^^^^^^^ noTcpStream
innet
error[E0432]: unresolved import
tokio_io::split
--> /Users/velimir/.cargo/registry/src/github.com-1ecc6299db9ec823/rants-0.3.1/src/types/state.rs:3:15 | 3 | use tokio_io::split::WriteHalf; | ^^^^^ could not findsplit
intokio_io
error[E0432]: unresolved import
tokio::sync::mpsc
--> /Users/velimir/.cargo/registry/src/github.com-1ecc6299db9ec823/rants-0.3.1/src/types.rs:15:18 | 15 | use tokio::sync::mpsc::Sender as MpscSender; | ^^^^ could not findmpsc
insync
tokio::codec
,tokio::io::AsyncWriteExt
,tokio::net::tcp
,tokio::sync::mpsc
,tokio::sync::oneshot
,tokio::sync::watch
,tokio::sync::watch
,tokio::timer
,tokio::timer
--> /Users/velimir/.cargo/registry/src/github.com-1ecc6299db9ec823/rants-0.3.1/src/lib.rs:79:5codec
intokio
80AsyncWrite
AsyncWriteExt
inio
tcp
innet
oneshot
insync
mpsc
insync
watch
insync
watch
insync
timer
in the roottimer
intokio
tokio_io::split
,tokio_io::split
--> /Users/velimir/.cargo/registry/src/github.com-1ecc6299db9ec823/rants-0.3.1/src/lib.rs:88:23split
in the rootsplit
intokio_io
tokio::sync::mpsc
,tokio::sync::watch
--> /Users/velimir/.cargo/registry/src/github.com-1ecc6299db9ec823/rants-0.3.1/src/lib.rs:100:23watch
insync
mpsc
insync
spawn
in cratetokio
--> /Users/velimir/.cargo/registry/src/github.com-1ecc6299db9ec823/rants-0.3.1/src/lib.rs:756:20tokio
help: possible candidate is found in another module, you can import it into scopespawn
in cratetokio
--> /Users/velimir/.cargo/registry/src/github.com-1ecc6299db9ec823/rants-0.3.1/src/lib.rs:778:20tokio
help: possible candidate is found in another module, you can import it into scopespawn
in cratetokio
--> /Users/velimir/.cargo/registry/src/github.com-1ecc6299db9ec823/rants-0.3.1/src/lib.rs:1018:20tokio
help: possible candidate is found in another module, you can import it into scopespawn
in cratetokio
--> /Users/velimir/.cargo/registry/src/github.com-1ecc6299db9ec823/rants-0.3.1/src/lib.rs:1041:32tokio
help: possible candidate is found in another module, you can import it into scopespawn
in cratetokio
--> /Users/velimir/.cargo/registry/src/github.com-1ecc6299db9ec823/rants-0.3.1/src/lib.rs:1056:28tokio
help: possible candidate is found in another module, you can import it into scopespawn
in cratetokio
--> /Users/velimir/.cargo/registry/src/github.com-1ecc6299db9ec823/rants-0.3.1/src/lib.rs:1078:24tokio
help: possible candidate is found in another module, you can import it into scopeerror[E0603]: module
sync
is private --> /Users/velimir/.cargo/registry/src/github.com-1ecc6299db9ec823/rants-0.3.1/src/types.rs:15:12 | 15 | use tokio::sync::mpsc::Sender as MpscSender; | ^^^^error[E0603]: module
sync
is private --> /Users/velimir/.cargo/registry/src/github.com-1ecc6299db9ec823/rants-0.3.1/src/lib.rs:82:5 | 82 | sync::{ | ^^^^error[E0603]: module
sync
is private --> /Users/velimir/.cargo/registry/src/github.com-1ecc6299db9ec823/rants-0.3.1/src/lib.rs:100:16 | 100 | pub use tokio::sync::{mpsc::Receiver as MpscReceiver, watch::Receiver as WatchReceiver}; | ^^^^error: aborting due to 16 previous errors
Some errors have detailed explanations: E0425, E0432, E0603. For more information about an error, try
rustc --explain E0425
. error: could not compilerants
. warning: build failed, waiting for other jobs to finish... error: build failed