dog-tunnel icon indicating copy to clipboard operation
dog-tunnel copied to clipboard

make编译rust版本时出现错误

Open yinghua8wu opened this issue 4 years ago • 0 comments

cargo build --features nowarnings Updating crates.io index Updating git repository https://github.com/clap-rs/clap Downloaded version_check v0.9.2 Downloaded futures-io v0.3.5 Downloaded matches v0.1.8 Downloaded percent-encoding v2.1.0 Downloaded futures-executor v0.3.5 Downloaded idna v0.2.0 Downloaded proc-macro-nested v0.1.6 Downloaded quote v1.0.7 Downloaded slab v0.4.2 Downloaded unicode-normalization v0.1.13 Downloaded tokio v0.2.21 Downloaded rand_chacha v0.2.2 Downloaded unicode-xid v0.2.1 Downloaded proc-macro-error-attr v1.0.3 Downloaded term_size v0.3.2 Downloaded proc-macro2 v1.0.18 Downloaded term_size v1.0.0-beta1 Downloaded textwrap v0.11.0 Downloaded unicode-width v0.1.7 Downloaded lazy_static v1.4.0 Downloaded futures-sink v0.3.5 Downloaded pin-utils v0.1.0 Downloaded mio v0.6.22 Downloaded vec_map v0.8.2 Downloaded syn-mid v0.5.0 Downloaded xml-rs v0.8.3 Downloaded url v2.1.1 Downloaded cfg-if v0.1.10 Downloaded futures-channel v0.3.5 Downloaded itoa v0.4.6 Downloaded indexmap v1.4.0 Downloaded heck v0.3.1 Downloaded xmltree v0.10.0 Downloaded os_str_bytes v2.3.1 Downloaded log v0.4.8 Downloaded futures-locks v0.5.0 Downloaded kcp v0.4.10 Downloaded num_cpus v1.13.0 Downloaded futures-util v0.3.5 Downloaded igd v0.10.2 Downloaded bytes v0.5.5 Downloaded byteorder v1.3.4 Downloaded syn v1.0.33 Downloaded pin-project-lite v0.1.7 Downloaded unicode-bidi v0.3.4 Downloaded tokio-executor v0.1.10 Downloaded tokio-current-thread v0.1.7 Downloaded termcolor v1.1.0 Downloaded futures v0.1.29 Downloaded mio-uds v0.6.8 Downloaded memchr v2.3.3 Downloaded futures v0.3.5 Downloaded bytes v0.4.12 Downloaded atty v0.2.14 Downloaded attohttpc v0.10.1 Downloaded unicode-segmentation v1.6.0 Downloaded proc-macro-error v1.0.3 Downloaded getrandom v0.1.14 Downloaded log v0.3.9 Downloaded iovec v0.1.4 Downloaded proc-macro-hack v0.5.16 Downloaded autocfg v1.0.0 Downloaded bitflags v1.2.1 Downloaded signal-hook-registry v1.2.0 Downloaded pin-project v0.4.22 Downloaded arc-swap v0.4.7 Downloaded tokio-macros v0.2.5 Downloaded strsim v0.10.0 Downloaded rand v0.7.3 Downloaded http v0.2.1 Downloaded futures-task v0.3.5 Downloaded fnv v1.0.7 Downloaded crossbeam-utils v0.7.2 Downloaded tinyvec v0.3.3 Downloaded ppv-lite86 v0.2.8 Downloaded async-trait v0.1.36 Downloaded rand_core v0.5.1 Downloaded once_cell v1.4.0 Downloaded libc v0.2.71 Downloaded pin-project-internal v0.4.22 Downloaded net2 v0.2.34 Downloaded futures-macro v0.3.5 Downloaded futures-core v0.3.5 Downloaded 83 crates (3.6 MB) in 4.11s Compiling libc v0.2.71 Compiling proc-macro2 v1.0.18 Compiling unicode-xid v0.2.1 Compiling cfg-if v0.1.10 Compiling syn v1.0.33 Compiling autocfg v1.0.0 Compiling log v0.4.8 Compiling version_check v0.9.2 Compiling pin-project-internal v0.4.22 Compiling lazy_static v1.4.0 Compiling getrandom v0.1.14 Compiling memchr v2.3.3 Compiling slab v0.4.2 Compiling tinyvec v0.3.3 Compiling matches v0.1.8 Compiling proc-macro-nested v0.1.6 Compiling futures-core v0.3.5 Compiling byteorder v1.3.4 Compiling fnv v1.0.7 Compiling bytes v0.5.5 Compiling futures-sink v0.3.5 Compiling once_cell v1.4.0 Compiling proc-macro-hack v0.5.16 Compiling pin-utils v0.1.0 Compiling ppv-lite86 v0.2.8 Compiling unicode-segmentation v1.6.0 Compiling futures-io v0.3.5 Compiling futures v0.1.29 Compiling itoa v0.4.6 Compiling percent-encoding v2.1.0 Compiling bitflags v1.2.1 Compiling unicode-width v0.1.7 Compiling xml-rs v0.8.3 Compiling arc-swap v0.4.7 Compiling strsim v0.10.0 Compiling vec_map v0.8.2 Compiling pin-project-lite v0.1.7 Compiling os_str_bytes v2.3.1 Compiling termcolor v1.1.0 Compiling crossbeam-utils v0.7.2 Compiling indexmap v1.4.0 Compiling proc-macro-error-attr v1.0.3 Compiling proc-macro-error v1.0.3 Compiling unicode-normalization v0.1.13 Compiling unicode-bidi v0.3.4 Compiling futures-channel v0.3.5 Compiling futures-task v0.3.5 Compiling heck v0.3.1 Compiling http v0.2.1 Compiling xmltree v0.10.0 Compiling idna v0.2.0 Compiling iovec v0.1.4 Compiling net2 v0.2.34 Compiling term_size v0.3.2 Compiling signal-hook-registry v1.2.0 Compiling num_cpus v1.13.0 Compiling atty v0.2.14 Compiling term_size v1.0.0-beta1 Compiling quote v1.0.7 Compiling log v0.3.9 Compiling url v2.1.1 Compiling bytes v0.4.12 Compiling rand_core v0.5.1 Compiling mio v0.6.22 Compiling textwrap v0.11.0 Compiling tokio-executor v0.1.10 Compiling attohttpc v0.10.1 Compiling kcp v0.4.10 Compiling rand_chacha v0.2.2 Compiling mio-uds v0.6.8 Compiling syn-mid v0.5.0 Compiling futures-macro v0.3.5 Compiling tokio-macros v0.2.5 Compiling async-trait v0.1.36 Compiling tokio-current-thread v0.1.7 Compiling rand v0.7.3 Compiling pin-project v0.4.22 Compiling tokio v0.2.21 Compiling futures-locks v0.5.0 Compiling igd v0.10.2 Compiling futures-util v0.3.5 Compiling clap_derive v3.0.0-beta.1 (https://github.com/clap-rs/clap#ca27d50a) Compiling futures-executor v0.3.5 Compiling clap v3.0.0-beta.1 (https://github.com/clap-rs/clap#ca27d50a) Compiling futures v0.3.5 Compiling dogtunnel v0.1.0 (/usr/local/gopackage/src/github.com/vzex/dog-tunnel) error[E0583]: file not found for module pipe --> src/lib.rs:7:1 | 7 | pub mod pipe; | ^^^^^^^^^^^^^ | = help: to create the module pipe, create file "src/pipe.rs"

error[E0308]: mismatched types --> src/common/flags_info.rs:5:20 | 5 | #[clap(short = "v", long = "verbose", parse(from_occurrences))] | ^^^ expected char, found &str

error[E0308]: mismatched types --> src/common/flags_info.rs:33:20 | 33 | #[clap(short = "s", long = "svc", default_value = "127.0.0.1:8888")] | ^^^ expected char, found &str

error[E0308]: mismatched types --> src/common/flags_info.rs:35:20 | 35 | #[clap(short = "a", long = "admin", default_value = "127.0.0.1:8887")] | ^^^ expected char, found &str

error[E0308]: mismatched types --> src/common/flags_info.rs:40:20 | 40 | #[clap(short = "s", long = "svc", default_value = "127.0.0.1:8888")] | ^^^ expected char, found &str

error[E0308]: mismatched types --> src/common/flags_info.rs:42:20 | 42 | #[clap(short = "a", long = "admin", default_value = "127.0.0.1:8887")] | ^^^ expected char, found &str

error[E0308]: mismatched types --> src/common/flags_info.rs:54:20 | 54 | #[clap(short = "a", long = "addr", default_value = "127.0.0.1:8887")] | ^^^ expected char, found &str

error: aborting due to 7 previous errors

Some errors have detailed explanations: E0308, E0583. For more information about an error, try rustc --explain E0308. error: could not compile dogtunnel.

To learn more, run the command again with --verbose. Makefile:2: recipe for target 'local_debug' failed make: *** [local_debug] Error 101

yinghua8wu avatar Oct 09 '20 00:10 yinghua8wu