1 unstable release
0.1.0 | Dec 30, 2019 |
---|
#5 in #libssh
Used in ssh_jumper
12KB
libssh-sys-dylib
Rust crate that provides FFI bindings to libssh.
Dependencies
Bindings are generated at build time using
bindgen. See its
Requirements page.
libssh
must be present on your system during runtime, it is dynamically linked.
This addresses the warnings
against static linking and its license implications.
In order to build this crate libssh
header files must also be available.
On Ubuntu all dependencies can be installed by running
apt install libssh-dev llvm-dev clang
See other options on libssh download page.
Building
cargo build
Usage
See smoke test where simple ssh server and client are created. The goal of the test is to show bindings work correctly, it is not a recommended way of API usage. More examples in C/C++ can be found here.
libssh version
Minimum supported version of libssh
is 0.6.3, found in Ubuntu 16.04.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Note that libssh
is licensed under LGPLv2.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
No runtime deps
~0–1.9MB
~36K SLoC