Crates.io | libssh-sys-dylib |
lib.rs | libssh-sys-dylib |
version | 0.1.0 |
source | src |
created_at | 2019-12-30 20:31:53.897821 |
updated_at | 2019-12-30 20:31:53.897821 |
description | Bindings to libssh for creating SSH servers and clients, etc. Links dynamically to systeml's libssh library. |
homepage | https://github.com/tomasol/libssh-sys-dylib |
repository | https://github.com/tomasol/libssh-sys-dylib |
max_upload_size | |
id | 193634 |
size | 26,404 |
Rust crate that provides FFI bindings to libssh.
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.
cargo build
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.
Minimum supported version of libssh
is 0.6.3, found in Ubuntu 16.04.
Licensed under either of
at your option.
Note that libssh
is licensed under LGPLv2.
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.