ssh2 0.2.8

Bindings to libssh2 for interacting with SSH servers and executing remote commands, forwarding local ports, etc.
Build #11277 2016-08-08 04:09:18

Build failed. If you want to re-trigger a documentation build, you can do it here. You can find more information on docs.rs builds documentation on the builds page.

# rustc version rustc 1.12.0-nightly (54c0dcfd6 2016-07-28)

# docs.rs version cratesfyi 0.2.0 (5dbd676 2016-07-30)

# build log Updating registry `https://github.com/rust-lang/crates.io-index` Downloading ssh2 v0.2.8 Compiling bitflags v0.1.1 Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/bitflags-0.1.1/src/lib.rs --crate-name bitflags --crate-type lib -g -C metadata=fdf4b7654a6da3e5 -C extra-filename=-fdf4b7654a6da3e5 --out-dir /home/cratesfyi/ssh2-0.2.8/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/ssh2-0.2.8/debug/deps -L dependency=/home/cratesfyi/ssh2-0.2.8/debug/deps --cap-lints allow` Compiling gcc v0.3.32 Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/gcc-0.3.32/src/lib.rs --crate-name gcc --crate-type lib -g -C metadata=ef3a0616dd2e0463 -C extra-filename=-ef3a0616dd2e0463 --out-dir /home/cratesfyi/ssh2-0.2.8/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/ssh2-0.2.8/debug/deps -L dependency=/home/cratesfyi/ssh2-0.2.8/debug/deps --cap-lints allow` Compiling pkg-config v0.3.8 Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/pkg-config-0.3.8/src/lib.rs --crate-name pkg_config --crate-type lib -g -C metadata=7cc12d9787dada57 -C extra-filename=-7cc12d9787dada57 --out-dir /home/cratesfyi/ssh2-0.2.8/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/ssh2-0.2.8/debug/deps -L dependency=/home/cratesfyi/ssh2-0.2.8/debug/deps --cap-lints allow` Compiling libc v0.1.12 Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.1.12/rust/src/liblibc/lib.rs --crate-name libc --crate-type lib -g --cfg feature=\"default\" --cfg feature=\"cargo-build\" -C metadata=0c57a2126eb1e7e8 -C extra-filename=-0c57a2126eb1e7e8 --out-dir /home/cratesfyi/ssh2-0.2.8/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/ssh2-0.2.8/debug/deps -L dependency=/home/cratesfyi/ssh2-0.2.8/debug/deps --cap-lints allow` Compiling libc v0.2.15 Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.15/src/lib.rs --crate-name libc --crate-type lib -g --cfg feature=\"use_std\" --cfg feature=\"default\" -C metadata=1bd8847afb79f283 -C extra-filename=-1bd8847afb79f283 --out-dir /home/cratesfyi/ssh2-0.2.8/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/ssh2-0.2.8/debug/deps -L dependency=/home/cratesfyi/ssh2-0.2.8/debug/deps --cap-lints allow` Compiling openssl-sys v0.7.14 Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.7.14/build.rs --crate-name build_script_build --crate-type bin -g --out-dir /home/cratesfyi/ssh2-0.2.8/debug/build/openssl-sys-db8810c7f6ab3f5c --emit=dep-info,link -L dependency=/home/cratesfyi/ssh2-0.2.8/debug/deps -L dependency=/home/cratesfyi/ssh2-0.2.8/debug/deps --extern pkg_config=/home/cratesfyi/ssh2-0.2.8/debug/deps/libpkg_config-7cc12d9787dada57.rlib --cap-lints allow` Compiling cmake v0.1.17 Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.17/src/lib.rs --crate-name cmake --crate-type lib -g -C metadata=c2fd9dcac690d902 -C extra-filename=-c2fd9dcac690d902 --out-dir /home/cratesfyi/ssh2-0.2.8/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/ssh2-0.2.8/debug/deps -L dependency=/home/cratesfyi/ssh2-0.2.8/debug/deps --extern gcc=/home/cratesfyi/ssh2-0.2.8/debug/deps/libgcc-ef3a0616dd2e0463.rlib --cap-lints allow` Compiling libz-sys v1.0.5 Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/libz-sys-1.0.5/build.rs --crate-name build_script_build --crate-type bin -g --out-dir /home/cratesfyi/ssh2-0.2.8/debug/build/libz-sys-b246b9f3989628d7 --emit=dep-info,link -L dependency=/home/cratesfyi/ssh2-0.2.8/debug/deps -L dependency=/home/cratesfyi/ssh2-0.2.8/debug/deps --extern gcc=/home/cratesfyi/ssh2-0.2.8/debug/deps/libgcc-ef3a0616dd2e0463.rlib --extern pkg_config=/home/cratesfyi/ssh2-0.2.8/debug/deps/libpkg_config-7cc12d9787dada57.rlib --cap-lints allow` Running `/home/cratesfyi/ssh2-0.2.8/debug/build/openssl-sys-db8810c7f6ab3f5c/build-script-build` Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.7.14/src/lib.rs --crate-name openssl_sys --crate-type lib -g -C metadata=1fd52a993b3834a7 -C extra-filename=-1fd52a993b3834a7 --out-dir /home/cratesfyi/ssh2-0.2.8/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/ssh2-0.2.8/debug/deps -L dependency=/home/cratesfyi/ssh2-0.2.8/debug/deps --extern libc=/home/cratesfyi/ssh2-0.2.8/debug/deps/liblibc-1bd8847afb79f283.rlib --cap-lints allow -L native=/usr/lib/x86_64-linux-gnu -l ssl -l crypto` Running `/home/cratesfyi/ssh2-0.2.8/debug/build/libz-sys-b246b9f3989628d7/build-script-build` Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/libz-sys-1.0.5/src/lib.rs --crate-name libz_sys --crate-type lib -g -C metadata=4c0b4a70ced04023 -C extra-filename=-4c0b4a70ced04023 --out-dir /home/cratesfyi/ssh2-0.2.8/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/ssh2-0.2.8/debug/deps -L dependency=/home/cratesfyi/ssh2-0.2.8/debug/deps --extern libc=/home/cratesfyi/ssh2-0.2.8/debug/deps/liblibc-1bd8847afb79f283.rlib --cap-lints allow -L native=/usr/lib/x86_64-linux-gnu -l z` Compiling libssh2-sys v0.1.38 Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/libssh2-sys-0.1.38/build.rs --crate-name build_script_build --crate-type bin -g --out-dir /home/cratesfyi/ssh2-0.2.8/debug/build/libssh2-sys-a1010066147c936a --emit=dep-info,link -L dependency=/home/cratesfyi/ssh2-0.2.8/debug/deps -L dependency=/home/cratesfyi/ssh2-0.2.8/debug/deps --extern cmake=/home/cratesfyi/ssh2-0.2.8/debug/deps/libcmake-c2fd9dcac690d902.rlib --extern pkg_config=/home/cratesfyi/ssh2-0.2.8/debug/deps/libpkg_config-7cc12d9787dada57.rlib --cap-lints allow` Running `/home/cratesfyi/ssh2-0.2.8/debug/build/libssh2-sys-a1010066147c936a/build-script-build` Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/libssh2-sys-0.1.38/lib.rs --crate-name libssh2_sys --crate-type lib -g -C metadata=5b58702936280067 -C extra-filename=-5b58702936280067 --out-dir /home/cratesfyi/ssh2-0.2.8/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/ssh2-0.2.8/debug/deps -L dependency=/home/cratesfyi/ssh2-0.2.8/debug/deps --extern libc=/home/cratesfyi/ssh2-0.2.8/debug/deps/liblibc-1bd8847afb79f283.rlib --extern libz_sys=/home/cratesfyi/ssh2-0.2.8/debug/deps/liblibz_sys-4c0b4a70ced04023.rlib --extern openssl_sys=/home/cratesfyi/ssh2-0.2.8/debug/deps/libopenssl_sys-1fd52a993b3834a7.rlib --cap-lints allow -L native=/home/cratesfyi/ssh2-0.2.8/debug/build/libssh2-sys-a1010066147c936a/out/lib -l static=ssh2 -L native=/usr/lib/x86_64-linux-gnu -L native=/usr/lib/x86_64-linux-gnu` Documenting ssh2 v0.2.8 Running `rustdoc .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/lib.rs --crate-name ssh2 -o /home/cratesfyi/ssh2-0.2.8/doc -L dependency=/home/cratesfyi/ssh2-0.2.8/debug -L dependency=/home/cratesfyi/ssh2-0.2.8/debug/deps --extern libc=/home/cratesfyi/ssh2-0.2.8/debug/deps/liblibc-0c57a2126eb1e7e8.rlib --extern libssh2_sys=/home/cratesfyi/ssh2-0.2.8/debug/deps/liblibssh2_sys-5b58702936280067.rlib --extern bitflags=/home/cratesfyi/ssh2-0.2.8/debug/deps/libbitflags-fdf4b7654a6da3e5.rlib` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:225:49: 225:55 error: mismatched types [E0308] .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:225 exit_signal: convert(self, sig, siglen), ^~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:225:49: 225:55 note: expected type `u64` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:225:49: 225:55 note: found type `usize` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:226:51: 226:57 error: mismatched types [E0308] .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:226 error_message: convert(self, msg, msglen), ^~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:226:51: 226:57 note: expected type `u64` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:226:51: 226:57 note: found type `usize` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:227:47: 227:54 error: mismatched types [E0308] .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:227 lang_tag: convert(self, lang, langlen), ^~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:227:47: 227:54 note: expected type `u64` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:227:47: 227:54 note: found type `usize` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:282:57: 282:73 error: mismatched types [E0308] .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:282 adjust as c_uint, ^~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:282:57: 282:73 note: expected type `u64` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:282:57: 282:73 note: found type `u32` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:236:48: 236:66 error: mismatched types [E0308] .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:236 raw::libssh2_free(chan.sess.raw(), ptr as *mut c_void); ^~~~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:236:48: 236:66 note: expected type `*mut libc::c_void` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:236:48: 236:66 note: found type `*mut libc::c_void` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:236:48: 236:66 note: expected enum `libc::c_void`, found a different enum `libc::c_void` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:236 raw::libssh2_free(chan.sess.raw(), ptr as *mut c_void); ^~~~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:236:48: 236:66 note: Perhaps two different versions of crate `libc` are being used? .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:236 raw::libssh2_free(chan.sess.raw(), ptr as *mut c_void); ^~~~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:392:51: 392:71 error: mismatched types [E0308] .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:392 data.len() as size_t); ^~~~~~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:392:51: 392:71 note: expected type `usize` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:392:51: 392:71 note: found type `u64` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:393:34: 393:36 error: mismatched types [E0308] .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:393 self.channel.sess.rc(rc).map(|()| rc as usize) ^~ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:393:34: 393:36 note: expected type `i32` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:393:34: 393:36 note: found type `isize` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:413:52: 413:72 error: mismatched types [E0308] .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:413 data.len() as size_t); ^~~~~~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:413:52: 413:72 note: expected type `usize` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:413:52: 413:72 note: found type `u64` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:414:34: 414:36 error: mismatched types [E0308] .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:414 self.channel.sess.rc(rc).map(|()| rc as usize) ^~ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:414:34: 414:36 note: expected type `i32` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/channel.rs:414:34: 414:36 note: found type `isize` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/knownhosts.rs:87:45: 87:62 error: mismatched types [E0308] .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/knownhosts.rs:87 s.len() as size_t, ^~~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/knownhosts.rs:87:45: 87:62 note: expected type `usize` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/knownhosts.rs:87:45: 87:62 note: found type `u64` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/knownhosts.rs:116:59: 116:81 error: mismatched types [E0308] .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/knownhosts.rs:116 v.capacity() as size_t, ^~~~~~~~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/knownhosts.rs:116:59: 116:81 note: expected type `usize` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/knownhosts.rs:116:59: 116:81 note: found type `u64` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/knownhosts.rs:166:52: 166:71 error: mismatched types [E0308] .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/knownhosts.rs:166 key.len() as size_t, ^~~~~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/knownhosts.rs:166:52: 166:71 note: expected type `usize` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/knownhosts.rs:166:52: 166:71 note: found type `u64` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/knownhosts.rs:200:50: 200:69 error: mismatched types [E0308] .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/knownhosts.rs:200 key.len() as size_t, ^~~~~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/knownhosts.rs:200:50: 200:69 note: expected type `usize` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/knownhosts.rs:200:50: 200:69 note: found type `u64` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/knownhosts.rs:202:50: 202:73 error: mismatched types [E0308] .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/knownhosts.rs:202 comment.len() as size_t, ^~~~~~~~~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/knownhosts.rs:202:50: 202:73 note: expected type `usize` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/knownhosts.rs:202:50: 202:73 note: found type `u64` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:40:23: 40:69 error: this function takes 4 parameters but 3 parameters were supplied [E0061] .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:40 let ret = raw::libssh2_session_init_ex(None, None, None); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:40:23: 40:69 note: the following parameter types were expected: std::option::Option<extern "C" fn(usize, *mut *mut libc::c_void) -> *mut libc::c_void>, std::option::Option<extern "C" fn(*mut libc::c_void, *mut *mut libc::c_void)>, std::option::Option<extern "C" fn(*mut libc::c_void, usize, *mut *mut libc::c_void) -> *mut libc::c_void>, *mut libc::c_void .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:332:41: 332:59 error: mismatched types [E0308] .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:332 raw::libssh2_free(self.raw, ptr as *mut c_void); ^~~~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:332:41: 332:59 note: expected type `*mut libc::c_void` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:332:41: 332:59 note: found type `*mut libc::c_void` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:332:41: 332:59 note: expected enum `libc::c_void`, found a different enum `libc::c_void` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:332 raw::libssh2_free(self.raw, ptr as *mut c_void); ^~~~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:332:41: 332:59 note: Perhaps two different versions of crate `libc` are being used? .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:332 raw::libssh2_free(self.raw, ptr as *mut c_void); ^~~~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:428:70: 428:77 error: mismatched types [E0308] .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:428 let ret = raw::libssh2_scp_recv(self.raw, path.as_ptr(), &mut sb); ^~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:428:70: 428:77 note: expected type `*mut libc::unix::notbsd::linux::other::b64::x86_64::stat` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:428:70: 428:77 note: found type `&mut libc::stat` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:428:70: 428:77 note: expected struct `libc::unix::notbsd::linux::other::b64::x86_64::stat`, found struct `libc::stat` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:428 let ret = raw::libssh2_scp_recv(self.raw, path.as_ptr(), &mut sb); ^~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:458:47: 458:51 error: mismatched types [E0308] .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:458 size, ^~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:458:47: 458:51 note: expected type `i64` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:458:47: 458:51 note: found type `u64` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:568:21: 569:70 error: mismatched types [E0308] .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:568 self.rc(raw::libssh2_keepalive_config(self.raw, want_reply as c_int, ^ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:568:21: 569:70 note: expected type `i32` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:568:21: 569:70 note: found type `()` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:568:21: 569:70 note: expected i32, found () .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/session.rs:568 self.rc(raw::libssh2_keepalive_config(self.raw, want_reply as c_int, ^ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/sftp.rs:398:46: 398:70 error: mismatched types [E0308] .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/sftp.rs:398 buf.capacity() as size_t, ^~~~~~~~~~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/sftp.rs:398:46: 398:70 note: expected type `usize` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/sftp.rs:398:46: 398:70 note: found type `u64` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/sftp.rs:433:45: 433:64 error: mismatched types [E0308] .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/sftp.rs:433 buf.len() as size_t); ^~~~~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/sftp.rs:433:45: 433:64 note: expected type `usize` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/sftp.rs:433:45: 433:64 note: found type `u64` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/sftp.rs:448:37: 448:56 error: mismatched types [E0308] .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/sftp.rs:448 buf.len() as size_t) ^~~~~~~~~~~~~~~~~~~ .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/sftp.rs:448:37: 448:56 note: expected type `usize` .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/sftp.rs:448:37: 448:56 note: found type `u64` error: Compilation failed, aborting rustdoc thread 'main' panicked at 'ChainedError { error: failed to compile `ssh2 v0.2.8`, intermediate artifacts can be found at `/home/cratesfyi/ssh2-0.2.8`, cause: ChainedError { error: Could not document `ssh2`., cause: Process didn't exit successfully: `rustdoc .cargo/registry/src/github.com-1ecc6299db9ec823/ssh2-0.2.8/src/lib.rs --crate-name ssh2 -o /home/cratesfyi/ssh2-0.2.8/doc -L dependency=/home/cratesfyi/ssh2-0.2.8/debug -L dependency=/home/cratesfyi/ssh2-0.2.8/debug/deps --extern libc=/home/cratesfyi/ssh2-0.2.8/debug/deps/liblibc-0c57a2126eb1e7e8.rlib --extern libssh2_sys=/home/cratesfyi/ssh2-0.2.8/debug/deps/liblibssh2_sys-5b58702936280067.rlib --extern bitflags=/home/cratesfyi/ssh2-0.2.8/debug/deps/libbitflags-fdf4b7654a6da3e5.rlib` (exit code: 101) } }', src/bin/cratesfyi.rs:119 note: Run with `RUST_BACKTRACE=1` for a backtrace.