dotcypress / mtproxy

[WIP] MTProto proxy server
Apache License 2.0
195 stars 21 forks source link

Fails to install #11

Closed danyhm closed 6 years ago

danyhm commented 6 years ago

It fails to install. i tred both cargo install mtproxy and manual install. both give the same error Ubuntu 14

root@server:~/mtproxy# cargo install mtproxy
    Updating registry `https://github.com/rust-lang/crates.io-index`
 Downloading mtproxy v0.0.2
  Installing mtproxy v0.0.2
 Downloading bytes v0.4.8
 Downloading quick-error v1.2.2
   Compiling rustc-serialize v0.3.24
   Compiling rand_core v0.2.0
   Compiling bitflags v1.0.3
   Compiling quick-error v1.2.2
   Compiling byteorder v1.2.3
   Compiling gcc v0.3.54
   Compiling strsim v0.7.0
   Compiling void v1.0.2
   Compiling unicode-width v0.1.5
   Compiling utf8-ranges v1.0.0
   Compiling vec_map v0.8.1
   Compiling lazycell v0.6.0
   Compiling regex v1.0.0
   Compiling termcolor v0.3.6
   Compiling cfg-if v0.1.3
   Compiling slab v0.4.0
   Compiling libc v0.2.41
   Compiling ucd-util v0.1.1
   Compiling ansi_term v0.11.0
   Compiling lazy_static v1.0.0
   Compiling humantime v1.1.1
   Compiling unreachable v1.0.0
   Compiling textwrap v0.9.0
   Compiling rust-crypto v0.2.36
   Compiling log v0.4.1
   Compiling regex-syntax v0.6.0
   Compiling rand v0.4.2
   Compiling time v0.1.40
   Compiling iovec v0.1.2
   Compiling net2 v0.2.32
   Compiling atty v0.2.10
   Compiling memchr v2.0.1
   Compiling rand v0.5.0
   Compiling thread_local v0.3.5
   Compiling rand v0.3.22
   Compiling bytes v0.4.8
   Compiling clap v2.31.2
   Compiling mio v0.6.14
   Compiling aho-corasick v0.6.4
   Compiling env_logger v0.5.10
   Compiling mtproxy v0.0.2
error: paths in `use` groups are experimental (see issue #44494)
 --> src/proto.rs:3:15
  |
3 | use std::{io, net::SocketAddr};
  |               ^^^^^^^^^^^^^^^

error: paths in `use` groups are experimental (see issue #44494)
 --> src/proto.rs:8:14
  |
8 | use crypto::{digest::Digest, sha2::Sha256};
  |              ^^^^^^^^^^^^^^

error: paths in `use` groups are experimental (see issue #44494)
 --> src/proto.rs:8:30
  |
8 | use crypto::{digest::Digest, sha2::Sha256};
  |                              ^^^^^^^^^^^^

error: paths in `use` groups are experimental (see issue #44494)
 --> src/proxy.rs:3:11
  |
3 | use std::{cell::RefCell, net::SocketAddr, usize};
  |           ^^^^^^^^^^^^^

error: paths in `use` groups are experimental (see issue #44494)
 --> src/proxy.rs:3:26
  |
3 | use std::{cell::RefCell, net::SocketAddr, usize};
  |                          ^^^^^^^^^^^^^^^

error: paths in `use` groups are experimental (see issue #44494)
 --> src/proxy.rs:5:14
  |
5 | use crypto::{digest::Digest, sha2::Sha256};
  |              ^^^^^^^^^^^^^^

error: paths in `use` groups are experimental (see issue #44494)
 --> src/proxy.rs:5:30
  |
5 | use crypto::{digest::Digest, sha2::Sha256};
  |                              ^^^^^^^^^^^^

error: paths in `use` groups are experimental (see issue #44494)
 --> src/proxy.rs:6:11
  |
6 | use mio::{net::TcpListener, unix::UnixReady, Events, Poll, PollOpt, Ready, Token};
  |           ^^^^^^^^^^^^^^^^

error: paths in `use` groups are experimental (see issue #44494)
 --> src/proxy.rs:6:29
  |
6 | use mio::{net::TcpListener, unix::UnixReady, Events, Poll, PollOpt, Ready, Token};
  |                             ^^^^^^^^^^^^^^^

error: glob imports in `use` groups are experimental (see issue #44494)
 --> src/pump.rs:1:21
  |
1 | use std::io::{self, prelude::*, ErrorKind};
  |                     ^^^^^^^^^^

error: paths in `use` groups are experimental (see issue #44494)
 --> src/pump.rs:4:11
  |
4 | use mio::{net::TcpStream, unix::UnixReady, Ready};
  |           ^^^^^^^^^^^^^^

error: paths in `use` groups are experimental (see issue #44494)
 --> src/pump.rs:4:27
  |
4 | use mio::{net::TcpStream, unix::UnixReady, Ready};
  |                           ^^^^^^^^^^^^^^^

error: aborting due to 12 previous errors

error: failed to compile `mtproxy v0.0.2`, intermediate artifacts can be found at `/tmp/cargo-install.B1pUiCzDQstl`

Caused by:
  Could not compile `mtproxy`.

To learn more, run the command again with --verbose.
LDVSOFT commented 6 years ago

I got the same, Rust 1.26 helped out.

savolkov commented 6 years ago

Got the same

ZEREX222 commented 6 years ago

I have the same error.