From 193b80d1e81ec46e5e5281f1371ac3e176b710ce Mon Sep 17 00:00:00 2001 From: Joshua Chapman Date: Sun, 13 Sep 2026 09:26:41 +0200 Subject: [PATCH] ssh2: re-export libssh2-sys in the public api This will give consumers of ssh2 access to the constants defined in libssh2-sys, without having to add libssh2-sys as a direct dependency. --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index acc380b5..234cf689 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -216,13 +216,15 @@ #![cfg_attr(test, deny(warnings))] extern crate libc; -extern crate libssh2_sys as raw; +pub extern crate libssh2_sys; #[macro_use] extern crate bitflags; extern crate parking_lot; use std::ffi::CStr; +use libssh2_sys as raw; + pub use agent::{Agent, PublicKey}; pub use channel::{Channel, ExitSignal, ReadWindow, Stream, WriteWindow}; pub use error::{Error, ErrorCode};