Cargo Features

libssh2-sys has no features set by default.

libssh2-sys = { version = "0.3.0", features = ["vendored-openssl", "zlib-ng-compat", "openssl-on-win32"] }

Enables vendored of openssl-sys


Enables zlib-ng of libz-sys


(Omit the libc feature if you don't require the corresponding functions.)

This allows higher-level crates depending on your library to opt into zlib-ng if desired.

Building zlib-ng requires cmake.

openssl-on-win32 = openssl-sys

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

openssl-sys unix win openssl-on-win32? vendored-openssl?