sorz / moproxy

A transparent TCP to SOCKSv5/HTTP proxy on Linux written in Rust.
MIT License
223 stars 35 forks source link

cargo update #10

Closed ahxxm closed 2 years ago

ahxxm commented 2 years ago

after,

➜  moproxy git:(master) ✗ cargo outdated
Name                     Project  Compat  Latest  Kind    Platform
----                     -------  ------  ------  ----    --------
clap->bitflags           1.2.1    ---     1.3.2   Normal  ---
env_logger               0.8.4    ---     0.9.0   Normal  ---
nix                      0.20.2   ---     0.23.0  Normal  cfg(target_os = "linux")
nix->bitflags            1.2.1    ---     1.3.2   Normal  ---
redox_syscall->bitflags  1.2.1    ---     1.3.2   Normal  ---
rlua->bitflags           1.2.1    ---     1.3.2   Normal  ---

env_logger 0.9.0 works, nix 0.23.0 does not compile yet:

error[E0164]: expected tuple struct or tuple variant, found associated function `nix::Error::Sys`
  --> src/linux/tcp.rs:19:9
   |
19 |         nix::Error::Sys(err) => io::Error::from(err),
   |         ^^^^^^^^^^^^^^^^^^^^ `fn` calls are not allowed in patterns
   |
   = help: for more information, visit https://doc.rust-lang.org/book/ch18-00-patterns.html

For more information about this error, try `rustc --explain E0164`.
sorz commented 2 years ago

Thanks. I will do the upgrade for nix.