You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe your issue in detail.
execute wasm-pack build ,report error: could not compile net2.
🤔 Expected Behavior
What should have happened?
compile successful
👟 Steps to reproduce
Clear steps describing how to reproduce the issue, including commands and flags run. If you are seeing an error, please include the full error message and stack trace.
$ wasm-pack build > log.log
[INFO]: Checking for the Wasm target...
[INFO]: Compiling to Wasm...
Compiling net2 v0.2.33
Compiling openssl-sys v0.9.53
Compiling http v0.1.21
Compiling string v0.2.1
Compiling tokio-buf v0.1.1
Compiling backtrace v0.3.40
Compiling mime_guess v2.0.1
Compiling cookie v0.12.0
error[E0432]: unresolved import sys
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\tcp.rs:18:5
|
18 | use sys::c;
| ^^^ maybe a missing crate sys?
error[E0432]: unresolved import sys
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\udp.rs:18:5
|
18 | use sys::c;
| ^^^ maybe a missing crate sys?
error[E0432]: unresolved import sys
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\socket.rs:22:5
|
22 | use sys;
| ^^^ no sys in the root
error[E0432]: unresolved import sys
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\socket.rs:23:5
|
23 | use sys::c;
| ^^^ maybe a missing crate sys?
error[E0432]: unresolved import sys
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:19:5
|
19 | use sys;
| ^^^ no sys in the root
error[E0432]: unresolved import sys
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:20:5
|
20 | use sys::c;
| ^^^ maybe a missing crate sys?
error: failed to run custom build command for openssl-sys v0.9.53
Caused by:
process didn't exit successfully: D:\project\rust\wasm-pack-template\target\release\build\openssl-sys-b802ceacb66bf576\build-script-main (exit code: 101)
--- stdout
cargo:rustc-cfg=const_fn
cargo:rerun-if-env-changed=WASM32_UNKNOWN_UNKNOWN_OPENSSL_LIB_DIR
WASM32_UNKNOWN_UNKNOWN_OPENSSL_LIB_DIR unset
cargo:rerun-if-env-changed=OPENSSL_LIB_DIR
OPENSSL_LIB_DIR unset
cargo:rerun-if-env-changed=WASM32_UNKNOWN_UNKNOWN_OPENSSL_INCLUDE_DIR
WASM32_UNKNOWN_UNKNOWN_OPENSSL_INCLUDE_DIR unset
cargo:rerun-if-env-changed=OPENSSL_INCLUDE_DIR
OPENSSL_INCLUDE_DIR unset
cargo:rerun-if-env-changed=WASM32_UNKNOWN_UNKNOWN_OPENSSL_DIR
WASM32_UNKNOWN_UNKNOWN_OPENSSL_DIR unset
cargo:rerun-if-env-changed=OPENSSL_DIR
OPENSSL_DIR unset
run pkg_config fail: "Cross compilation detected. Use PKG_CONFIG_ALLOW_CROSS=1 to override"
note: vcpkg did not find openssl as libcrypto and libssl: the vcpkg-rs Vcpkg build helper can only find libraries built for the MSVC ABI.
note: vcpkg did not find openssl as ssleay32 and libeay32: the vcpkg-rs Vcpkg build helper can only find libraries built for the MSVC ABI.
--- stderr
thread 'main' panicked at '
Could not find directory of OpenSSL installation, and this -sys crate cannot
proceed without this knowledge. If OpenSSL is installed and this crate had
trouble finding it, you can set the OPENSSL_DIR environment variable for the
compilation process.
Make sure you also have the development packages of openssl installed.
For example, libssl-dev on Ubuntu or openssl-devel on Fedora.
If you're in a situation where you think the directory should be found
automatically, please open a bug at https://github.com/sfackler/rust-openssl
and include information about your system as well as this message.
$HOST = x86_64-pc-windows-msvc
$TARGET = wasm32-unknown-unknown
openssl-sys = 0.9.53
', D:\cargo\registry\src\github.com-1ecc6299db9ec823\openssl-sys-0.9.53\build\find_normal.rs:150:5
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace.
warning: build failed, waiting for other jobs to finish...
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\socket.rs:30:24
|
30 | pub fn new(family: c_int, ty: c_int) -> io::Result {
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
11 | use std::os::raw::c_int;
|
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\socket.rs:30:35
|
30 | pub fn new(family: c_int, ty: c_int) -> io::Result {
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
11 | use std::os::raw::c_int;
|
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\socket.rs:101:32
|
101 | match storage.ss_family as c_int {
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
11 | use std::os::raw::c_int;
|
error[E0412]: cannot find type Socket in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:62:31
|
62 | pub fn set_opt<T: Copy>(sock: Socket, opt: c_int, val: c_int,
| ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use socket::Socket;
|
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:62:44
|
62 | pub fn set_opt<T: Copy>(sock: Socket, opt: c_int, val: c_int,
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:62:56
|
62 | pub fn set_opt<T: Copy>(sock: Socket, opt: c_int, val: c_int,
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0412]: cannot find type c_void in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:65:54
|
65 | let payload = &payload as *const T as *const c_void;
| ^^^^^^ not found in this scope
help: possible candidates are found in other modules, you can import them into scope
|
13 | use std::ffi::c_void;
|
13 | use std::os::raw::c_void;
|
error[E0425]: cannot find function setsockopt in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:68:20
|
68 | try!(::cvt(setsockopt(sock, opt, val, payload as *const _,
| ^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type socklen_t in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:69:54
|
69 | ... mem::size_of::() as socklen_t)));
| ^^^^^^^^^ not found in this scope
error[E0412]: cannot find type Socket in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:74:31
|
74 | pub fn get_opt<T: Copy>(sock: Socket, opt: c_int, val: c_int) -> io::Result {
| ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use socket::Socket;
|
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:74:44
|
74 | pub fn get_opt<T: Copy>(sock: Socket, opt: c_int, val: c_int) -> io::Result {
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:74:56
|
74 | pub fn get_opt<T: Copy>(sock: Socket, opt: c_int, val: c_int) -> io::Result {
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0412]: cannot find type socklen_t in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:77:46
|
77 | let mut len = mem::size_of::() as socklen_t;
| ^^^^^^^^^ not found in this scope
error[E0425]: cannot find function getsockopt in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:80:20
|
80 | try!(::cvt(getsockopt(sock, opt, val,
| ^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type Socket in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:641:26
|
641 | fn as_sock(&self) -> Socket;
| ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use socket::Socket;
|
error[E0425]: cannot find value SOL_SOCKET in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:675:33
|
675 | set_opt(self.as_sock(), SOL_SOCKET, SO_RCVBUF, size as c_int)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SO_RCVBUF in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:675:45
|
675 | set_opt(self.as_sock(), SOL_SOCKET, SO_RCVBUF, size as c_int)
| ^^^^^^^^^ not found in this scope
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:675:64
|
675 | set_opt(self.as_sock(), SOL_SOCKET, SO_RCVBUF, size as c_int)
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0425]: cannot find value SOL_SOCKET in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:679:33
|
679 | get_opt(self.as_sock(), SOL_SOCKET, SO_RCVBUF).map(int2usize)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SO_RCVBUF in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:679:45
|
679 | get_opt(self.as_sock(), SOL_SOCKET, SO_RCVBUF).map(int2usize)
| ^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SOL_SOCKET in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:683:33
|
683 | set_opt(self.as_sock(), SOL_SOCKET, SO_SNDBUF, size as c_int)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SO_SNDBUF in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:683:45
|
683 | set_opt(self.as_sock(), SOL_SOCKET, SO_SNDBUF, size as c_int)
| ^^^^^^^^^ not found in this scope
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:683:64
|
683 | set_opt(self.as_sock(), SOL_SOCKET, SO_SNDBUF, size as c_int)
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0425]: cannot find value SOL_SOCKET in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:687:33
|
687 | get_opt(self.as_sock(), SOL_SOCKET, SO_SNDBUF).map(int2usize)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SO_SNDBUF in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:687:45
|
687 | get_opt(self.as_sock(), SOL_SOCKET, SO_SNDBUF).map(int2usize)
| ^^^^^^^^^ not found in this scope
error[E0425]: cannot find function v in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:691:33
|
691 | set_opt(self.as_sock(), v(IPPROTO_TCP), TCP_NODELAY,
| ^ not found in this scope
error[E0425]: cannot find value IPPROTO_TCP in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:691:35
|
691 | set_opt(self.as_sock(), v(IPPROTO_TCP), TCP_NODELAY,
| ^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value TCP_NODELAY in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:691:49
|
691 | set_opt(self.as_sock(), v(IPPROTO_TCP), TCP_NODELAY,
| ^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:692:27
|
692 | nodelay as c_int)
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0425]: cannot find function v in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:695:33
|
695 | get_opt(self.as_sock(), v(IPPROTO_TCP), TCP_NODELAY)
| ^ not found in this scope
error[E0425]: cannot find value IPPROTO_TCP in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:695:35
|
695 | get_opt(self.as_sock(), v(IPPROTO_TCP), TCP_NODELAY)
| ^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value TCP_NODELAY in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:695:49
|
695 | get_opt(self.as_sock(), v(IPPROTO_TCP), TCP_NODELAY)
| ^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SOL_SOCKET in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:802:33
|
802 | set_opt(self.as_sock(), SOL_SOCKET, SO_RCVTIMEO,
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SO_RCVTIMEO in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:802:45
|
802 | set_opt(self.as_sock(), SOL_SOCKET, SO_RCVTIMEO,
| ^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function ms2timeout in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:803:16
|
803 | ms2timeout(dur))
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SOL_SOCKET in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:807:33
|
807 | get_opt(self.as_sock(), SOL_SOCKET, SO_RCVTIMEO)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SO_RCVTIMEO in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:807:45
|
807 | get_opt(self.as_sock(), SOL_SOCKET, SO_RCVTIMEO)
| ^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value timeout2ms in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:808:18
|
808 | .map(timeout2ms)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SOL_SOCKET in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:812:33
|
812 | set_opt(self.as_sock(), SOL_SOCKET, SO_SNDTIMEO,
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SO_SNDTIMEO in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:812:45
|
812 | set_opt(self.as_sock(), SOL_SOCKET, SO_SNDTIMEO,
| ^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function ms2timeout in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:813:16
|
813 | ms2timeout(dur))
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SOL_SOCKET in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:817:33
|
817 | get_opt(self.as_sock(), SOL_SOCKET, SO_SNDTIMEO)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SO_SNDTIMEO in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:817:45
|
817 | get_opt(self.as_sock(), SOL_SOCKET, SO_SNDTIMEO)
| ^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value timeout2ms in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:818:18
|
818 | .map(timeout2ms)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IPPROTO_IP in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:838:33
|
838 | set_opt(self.as_sock(), IPPROTO_IP, IP_TTL, ttl as c_int)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IP_TTL in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:838:45
|
838 | set_opt(self.as_sock(), IPPROTO_IP, IP_TTL, ttl as c_int)
| ^^^^^^ not found in this scope
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:838:60
|
838 | set_opt(self.as_sock(), IPPROTO_IP, IP_TTL, ttl as c_int)
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:842:19
|
842 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IP_TTL)
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0425]: cannot find value IPPROTO_IP in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:842:42
|
842 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IP_TTL)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IP_TTL in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:842:54
|
842 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IP_TTL)
| ^^^^^^ not found in this scope
error[E0425]: cannot find function v in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:847:33
|
847 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
| ^ not found in this scope
error[E0425]: cannot find value IPPROTO_IPV6 in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:847:35
|
847 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
| ^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IPV6_V6ONLY in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:847:50
|
847 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
| ^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:847:74
|
847 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0425]: cannot find function v in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:851:33
|
851 | get_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY).map(int2bool)
| ^ not found in this scope
error[E0425]: cannot find value IPPROTO_IPV6 in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:851:35
|
851 | get_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY).map(int2bool)
| ^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IPV6_V6ONLY in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:851:50
|
851 | get_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY).map(int2bool)
| ^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SOL_SOCKET in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:859:33
|
859 | get_opt(self.as_sock(), SOL_SOCKET, SO_ERROR).map(int2err)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SO_ERROR in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:859:45
|
859 | get_opt(self.as_sock(), SOL_SOCKET, SO_ERROR).map(int2err)
| ^^^^^^^^ not found in this scope
error[E0425]: cannot find function set_nonblocking in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:863:9
|
863 | set_nonblocking(self.as_sock(), nonblocking)
| ^^^^^^^^^^^^^^^ help: try: self.set_nonblocking
error[E0425]: cannot find value SOL_SOCKET in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:867:33
|
867 | set_opt(self.as_sock(), SOL_SOCKET, SO_LINGER, dur2linger(dur))
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SO_LINGER in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:867:45
|
867 | set_opt(self.as_sock(), SOL_SOCKET, SO_LINGER, dur2linger(dur))
| ^^^^^^^^^ not found in this scope
error[E0425]: cannot find function dur2linger in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:867:56
|
867 | set_opt(self.as_sock(), SOL_SOCKET, SO_LINGER, dur2linger(dur))
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SOL_SOCKET in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:871:33
|
871 | get_opt(self.as_sock(), SOL_SOCKET, SO_LINGER).map(linger2dur)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SO_LINGER in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:871:45
|
871 | get_opt(self.as_sock(), SOL_SOCKET, SO_LINGER).map(linger2dur)
| ^^^^^^^^^ not found in this scope
error[E0412]: cannot find type linger in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:910:27
|
910 | fn linger2dur(linger_opt: linger) -> Option {
| ^^^^^^ not found in this scope
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:953:20
|
953 | pub fn int2bool(n: c_int) -> bool {
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:957:21
|
957 | pub fn int2usize(n: c_int) -> usize {
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:962:19
|
962 | pub fn int2err(n: c_int) -> Optionio::Error {
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0425]: cannot find value SOL_SOCKET in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:973:33
|
973 | set_opt(self.as_sock(), SOL_SOCKET, SO_RCVBUF, size as c_int)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SO_RCVBUF in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:973:45
|
973 | set_opt(self.as_sock(), SOL_SOCKET, SO_RCVBUF, size as c_int)
| ^^^^^^^^^ not found in this scope
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:973:64
|
973 | set_opt(self.as_sock(), SOL_SOCKET, SO_RCVBUF, size as c_int)
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0425]: cannot find value SOL_SOCKET in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:977:33
|
977 | get_opt(self.as_sock(), SOL_SOCKET, SO_RCVBUF).map(int2usize)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SO_RCVBUF in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:977:45
|
977 | get_opt(self.as_sock(), SOL_SOCKET, SO_RCVBUF).map(int2usize)
| ^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SOL_SOCKET in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:981:33
|
981 | set_opt(self.as_sock(), SOL_SOCKET, SO_SNDBUF, size as c_int)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SO_SNDBUF in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:981:45
|
981 | set_opt(self.as_sock(), SOL_SOCKET, SO_SNDBUF, size as c_int)
| ^^^^^^^^^ not found in this scope
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:981:64
|
981 | set_opt(self.as_sock(), SOL_SOCKET, SO_SNDBUF, size as c_int)
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0425]: cannot find value SOL_SOCKET in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:985:33
|
985 | get_opt(self.as_sock(), SOL_SOCKET, SO_SNDBUF).map(int2usize)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SO_SNDBUF in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:985:45
|
985 | get_opt(self.as_sock(), SOL_SOCKET, SO_SNDBUF).map(int2usize)
| ^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SOL_SOCKET in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:989:33
|
989 | set_opt(self.as_sock(), SOL_SOCKET, SO_BROADCAST,
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SO_BROADCAST in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:989:45
|
989 | set_opt(self.as_sock(), SOL_SOCKET, SO_BROADCAST,
| ^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:990:29
|
990 | broadcast as c_int)
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0425]: cannot find value SOL_SOCKET in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:993:33
|
993 | get_opt(self.as_sock(), SOL_SOCKET, SO_BROADCAST)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SO_BROADCAST in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:993:45
|
993 | get_opt(self.as_sock(), SOL_SOCKET, SO_BROADCAST)
| ^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IPPROTO_IP in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:997:33
|
997 | set_opt(self.as_sock(), IPPROTO_IP, IP_MULTICAST_LOOP,
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IP_MULTICAST_LOOP in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:997:45
|
997 | set_opt(self.as_sock(), IPPROTO_IP, IP_MULTICAST_LOOP,
| ^^^^^^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:998:37
|
998 | multicast_loop_v4 as c_int)
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0425]: cannot find value IPPROTO_IP in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1001:33
|
1001 | get_opt(self.as_sock(), IPPROTO_IP, IP_MULTICAST_LOOP)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IP_MULTICAST_LOOP in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1001:45
|
1001 | get_opt(self.as_sock(), IPPROTO_IP, IP_MULTICAST_LOOP)
| ^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IPPROTO_IP in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1006:33
|
1006 | set_opt(self.as_sock(), IPPROTO_IP, IP_MULTICAST_TTL,
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IP_MULTICAST_TTL in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1006:45
|
1006 | set_opt(self.as_sock(), IPPROTO_IP, IP_MULTICAST_TTL,
| ^^^^^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1007:36
|
1007 | multicast_ttl_v4 as c_int)
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1011:19
|
1011 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IP_MULTICAST_TTL)
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0425]: cannot find value IPPROTO_IP in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1011:42
|
1011 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IP_MULTICAST_TTL)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IP_MULTICAST_TTL in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1011:54
|
1011 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IP_MULTICAST_TTL)
| ^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function v in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1019:33
|
1019 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_HOPS,
| ^ not found in this scope
error[E0425]: cannot find value IPPROTO_IPV6 in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1019:35
|
1019 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_HOPS,
| ^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IPV6_MULTICAST_HOPS in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1019:50
|
1019 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_HOPS,
| ^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1020:25
|
1020 | _hops as c_int)
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1027:19
|
1027 | get_opt::<c_int>(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_HOPS)
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0425]: cannot find function v in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1027:42
|
1027 | get_opt::<c_int>(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_HOPS)
| ^ not found in this scope
error[E0425]: cannot find value IPPROTO_IPV6 in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1027:44
|
1027 | get_opt::<c_int>(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_HOPS)
| ^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IPV6_MULTICAST_HOPS in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1027:59
|
1027 | get_opt::<c_int>(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_HOPS)
| ^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function v in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1032:33
|
1032 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_LOOP,
| ^ not found in this scope
error[E0425]: cannot find value IPPROTO_IPV6 in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1032:35
|
1032 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_LOOP,
| ^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IPV6_MULTICAST_LOOP in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1032:50
|
1032 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_LOOP,
| ^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1033:37
|
1033 | multicast_loop_v6 as c_int)
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0425]: cannot find function v in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1036:33
|
1036 | get_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_LOOP)
| ^ not found in this scope
error[E0425]: cannot find value IPPROTO_IPV6 in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1036:35
|
1036 | get_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_LOOP)
| ^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IPV6_MULTICAST_LOOP in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1036:50
|
1036 | get_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_LOOP)
| ^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IPPROTO_IP in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1044:33
|
1044 | set_opt(self.as_sock(), IPPROTO_IP, IP_MULTICAST_IF, ip2in_addr(_interface))
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IP_MULTICAST_IF in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1044:45
|
1044 | set_opt(self.as_sock(), IPPROTO_IP, IP_MULTICAST_IF, ip2in_addr(_interface))
| ^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function ip2in_addr in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1044:62
|
1044 | set_opt(self.as_sock(), IPPROTO_IP, IP_MULTICAST_IF, ip2in_addr(_interface))
| ^^^^^^^^^^ help: a function with a similar name exists: ip2in6_addr
error[E0425]: cannot find value IPPROTO_IP in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1051:33
|
1051 | get_opt(self.as_sock(), IPPROTO_IP, IP_MULTICAST_IF).map(in_addr2ip)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IP_MULTICAST_IF in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1051:45
|
1051 | get_opt(self.as_sock(), IPPROTO_IP, IP_MULTICAST_IF).map(in_addr2ip)
| ^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function v in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1058:33
|
1058 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_IF, to_ipv6mr_interface(_interface))
| ^ not found in this scope
error[E0425]: cannot find value IPPROTO_IPV6 in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1058:35
|
1058 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_IF, to_ipv6mr_interface(_interface))
| ^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IPV6_MULTICAST_IF in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1058:50
|
1058 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_IF, to_ipv6mr_interface(_interface))
| ^^^^^^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1065:19
|
1065 | get_opt::<c_int>(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_IF).map(|b| b as u32)
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0425]: cannot find function v in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1065:42
|
1065 | get_opt::<c_int>(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_IF).map(|b| b as u32)
| ^ not found in this scope
error[E0425]: cannot find value IPPROTO_IPV6 in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1065:44
|
1065 | get_opt::<c_int>(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_IF).map(|b| b as u32)
| ^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IPV6_MULTICAST_IF in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1065:59
|
1065 | get_opt::<c_int>(self.as_sock(), v(IPPROTO_IPV6), IPV6_MULTICAST_IF).map(|b| b as u32)
| ^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IPPROTO_IP in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1069:33
|
1069 | set_opt(self.as_sock(), IPPROTO_IP, IP_TTL, ttl as c_int)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IP_TTL in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1069:45
|
1069 | set_opt(self.as_sock(), IPPROTO_IP, IP_TTL, ttl as c_int)
| ^^^^^^ not found in this scope
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1069:60
|
1069 | set_opt(self.as_sock(), IPPROTO_IP, IP_TTL, ttl as c_int)
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1073:19
|
1073 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IP_TTL)
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0425]: cannot find value IPPROTO_IP in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1073:42
|
1073 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IP_TTL)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IP_TTL in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1073:54
|
1073 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IP_TTL)
| ^^^^^^ not found in this scope
error[E0425]: cannot find function v in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1081:33
|
1081 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_UNICAST_HOPS, _ttl as c_int)
| ^ not found in this scope
error[E0425]: cannot find value IPPROTO_IPV6 in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1081:35
|
1081 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_UNICAST_HOPS, _ttl as c_int)
| ^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IPV6_UNICAST_HOPS in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1081:50
|
1081 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_UNICAST_HOPS, _ttl as c_int)
| ^^^^^^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1081:77
|
1081 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_UNICAST_HOPS, _ttl as c_int)
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1088:19
|
1088 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IPV6_UNICAST_HOPS)
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0425]: cannot find value IPPROTO_IP in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1088:42
|
1088 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IPV6_UNICAST_HOPS)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IPV6_UNICAST_HOPS in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1088:54
|
1088 | get_opt::<c_int>(self.as_sock(), IPPROTO_IP, IPV6_UNICAST_HOPS)
| ^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function v in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1093:33
|
1093 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
| ^ not found in this scope
error[E0425]: cannot find value IPPROTO_IPV6 in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1093:35
|
1093 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
| ^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IPV6_V6ONLY in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1093:50
|
1093 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
| ^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type c_int in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1093:74
|
1093 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY, only_v6 as c_int)
| ^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_int;
|
error[E0425]: cannot find function v in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1097:33
|
1097 | get_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY).map(int2bool)
| ^ not found in this scope
error[E0425]: cannot find value IPPROTO_IPV6 in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1097:35
|
1097 | get_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY).map(int2bool)
| ^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IPV6_V6ONLY in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1097:50
|
1097 | get_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_V6ONLY).map(int2bool)
| ^^^^^^^^^^^ not found in this scope
error[E0422]: cannot find struct, variant or union type ip_mreq in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1102:20
|
1102 | let mreq = ip_mreq {
| ^^^^^^^ not found in this scope
error[E0425]: cannot find function ip2in_addr in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1103:28
|
1103 | imr_multiaddr: ip2in_addr(multiaddr),
| ^^^^^^^^^^ help: a function with a similar name exists: ip2in6_addr
error[E0425]: cannot find function ip2in_addr in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1104:28
|
1104 | imr_interface: ip2in_addr(interface),
| ^^^^^^^^^^ help: a function with a similar name exists: ip2in6_addr
error[E0425]: cannot find value IPPROTO_IP in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1106:33
|
1106 | set_opt(self.as_sock(), IPPROTO_IP, IP_ADD_MEMBERSHIP, mreq)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IP_ADD_MEMBERSHIP in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1106:45
|
1106 | set_opt(self.as_sock(), IPPROTO_IP, IP_ADD_MEMBERSHIP, mreq)
| ^^^^^^^^^^^^^^^^^ not found in this scope
error[E0422]: cannot find struct, variant or union type ipv6_mreq in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1111:20
|
1111 | let mreq = ipv6_mreq {
| ^^^^^^^^^ not found in this scope
error[E0425]: cannot find function v in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1115:33
|
1115 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_ADD_MEMBERSHIP,
| ^ not found in this scope
error[E0425]: cannot find value IPPROTO_IPV6 in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1115:35
|
1115 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_ADD_MEMBERSHIP,
| ^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IPV6_ADD_MEMBERSHIP in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1115:50
|
1115 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_ADD_MEMBERSHIP,
| ^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0422]: cannot find struct, variant or union type ip_mreq in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1121:20
|
1121 | let mreq = ip_mreq {
| ^^^^^^^ not found in this scope
error[E0425]: cannot find function ip2in_addr in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1122:28
|
1122 | imr_multiaddr: ip2in_addr(multiaddr),
| ^^^^^^^^^^ help: a function with a similar name exists: ip2in6_addr
error[E0425]: cannot find function ip2in_addr in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1123:28
|
1123 | imr_interface: ip2in_addr(interface),
| ^^^^^^^^^^ help: a function with a similar name exists: ip2in6_addr
error[E0425]: cannot find value IPPROTO_IP in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1125:33
|
1125 | set_opt(self.as_sock(), IPPROTO_IP, IP_DROP_MEMBERSHIP, mreq)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IP_DROP_MEMBERSHIP in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1125:45
|
1125 | set_opt(self.as_sock(), IPPROTO_IP, IP_DROP_MEMBERSHIP, mreq)
| ^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0422]: cannot find struct, variant or union type ipv6_mreq in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1130:20
|
1130 | let mreq = ipv6_mreq {
| ^^^^^^^^^ not found in this scope
error[E0425]: cannot find function v in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1134:33
|
1134 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_DROP_MEMBERSHIP,
| ^ not found in this scope
error[E0425]: cannot find value IPPROTO_IPV6 in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1134:35
|
1134 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_DROP_MEMBERSHIP,
| ^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value IPV6_DROP_MEMBERSHIP in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1134:50
|
1134 | set_opt(self.as_sock(), v(IPPROTO_IPV6), IPV6_DROP_MEMBERSHIP,
| ^^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SOL_SOCKET in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1139:33
|
1139 | set_opt(self.as_sock(), SOL_SOCKET, SO_RCVTIMEO,
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SO_RCVTIMEO in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1139:45
|
1139 | set_opt(self.as_sock(), SOL_SOCKET, SO_RCVTIMEO,
| ^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function ms2timeout in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1140:16
|
1140 | ms2timeout(dur))
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SOL_SOCKET in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1144:33
|
1144 | get_opt(self.as_sock(), SOL_SOCKET, SO_RCVTIMEO)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SO_RCVTIMEO in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1144:45
|
1144 | get_opt(self.as_sock(), SOL_SOCKET, SO_RCVTIMEO)
| ^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value timeout2ms in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1145:18
|
1145 | .map(timeout2ms)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SOL_SOCKET in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1149:33
|
1149 | set_opt(self.as_sock(), SOL_SOCKET, SO_SNDTIMEO,
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SO_SNDTIMEO in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1149:45
|
1149 | set_opt(self.as_sock(), SOL_SOCKET, SO_SNDTIMEO,
| ^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find function ms2timeout in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1150:16
|
1150 | ms2timeout(dur))
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SOL_SOCKET in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1154:33
|
1154 | get_opt(self.as_sock(), SOL_SOCKET, SO_SNDTIMEO)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SO_SNDTIMEO in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1154:45
|
1154 | get_opt(self.as_sock(), SOL_SOCKET, SO_SNDTIMEO)
| ^^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value timeout2ms in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1155:18
|
1155 | .map(timeout2ms)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SOL_SOCKET in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1175:33
|
1175 | get_opt(self.as_sock(), SOL_SOCKET, SO_ERROR).map(int2err)
| ^^^^^^^^^^ not found in this scope
error[E0425]: cannot find value SO_ERROR in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1175:45
|
1175 | get_opt(self.as_sock(), SOL_SOCKET, SO_ERROR).map(int2err)
| ^^^^^^^^ not found in this scope
error[E0425]: cannot find function set_nonblocking in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1233:9
|
1233 | set_nonblocking(self.as_sock(), nonblocking)
| ^^^^^^^^^^^^^^^ help: try: self.set_nonblocking
error[E0412]: cannot find type Socket in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1237:39
|
1237 | fn do_connect<A: ToSocketAddrs>(sock: Socket, addr: A) -> io::Result<()> {
| ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use socket::Socket;
|
error[E0412]: cannot find type in_addr in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1318:20
|
1318 | fn in_addr2ip(ip: &in_addr) -> Ipv4Addr {
| ^^^^^^^ not found in this scope
error[E0412]: cannot find type c_uint in this scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1335:39
|
1335 | fn to_ipv6mr_interface(value: u32) -> c_uint {
| ^^^^^^ not found in this scope
help: possible candidate is found in another module, you can import it into scope
|
13 | use std::os::raw::c_uint;
error[E0599]: no method named as_sock found for type &udp::UdpBuilder in the current scope
--> D:\cargo\registry\src\github.com-1ecc6299db9ec823\net2-0.2.33\src\ext.rs:1499:22
|
1499 | get_opt(self.as_sock(), SOL_SOCKET, SO_ERROR).map(int2err)
| ^^^^^^^ method not found in &udp::UdpBuilder
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item as_sock, perhaps you need to implement it:
candidate #1: ext::AsSock
error: aborting due to 317 previous errors
Some errors have detailed explanations: E0046, E0412, E0422, E0425, E0432, E0599.
For more information about an error, try rustc --explain E0046.
error: could not compile net2.
warning: build failed, waiting for other jobs to finish...
error: build failed
Error: Compiling your crate to WebAssembly failed
Caused by: failed to execute cargo build: exited with exit code: 101
🌍 Your environment
Include the relevant details of your environment.
wasm-pack version: wasm-pack 0.8.1
rustc version: rustc 1.39.0 (4560ea788 2019-11-04)
operation system: windows10
The text was updated successfully, but these errors were encountered:
🐛 Bug description
Describe your issue in detail.
execute wasm-pack build ,report error: could not compile net2.
🤔 Expected Behavior
What should have happened?
compile successful
👟 Steps to reproduce
Clear steps describing how to reproduce the issue, including commands and flags run. If you are seeing an error, please include the full error message and stack trace.
🌍 Your environment
Include the relevant details of your environment.
wasm-pack version: wasm-pack 0.8.1
rustc version: rustc 1.39.0 (4560ea788 2019-11-04)
operation system: windows10
The text was updated successfully, but these errors were encountered: