Skip to content

ssh2: re-export libssh2-sys in the public api - #365

Merged
yodaldevoid merged 1 commit into
rust-lang:masterfrom
joshuachp:ssh2-re-export-libssh2-sys-in-the-public-api/utlpzqquwpwz
Sep 13, 2026
Merged

yodaldevoid merged 1 commit into
rust-lang:masterfrom
joshuachp:ssh2-re-export-libssh2-sys-in-the-public-api/utlpzqquwpwz

Conversation

@joshuachp

@joshuachp joshuachp commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

This will give consumers of ssh2 access to the constants defined in libssh2-sys, without having to add libssh2-sys as a direct dependency.

Closes #364

This will give consumers of ssh2 access to the constants defined in
libssh2-sys, without having to add libssh2-sys as a direct dependency.
@joshuachp
joshuachp force-pushed the ssh2-re-export-libssh2-sys-in-the-public-api/utlpzqquwpwz branch from 37c90de to 193b80d Compare September 13, 2026 07:38
@joshuachp

Copy link
Copy Markdown
Contributor Author

The extern crate with a separate use as raw was to generate the following doc

image

Instead of this:

image

@yodaldevoid
yodaldevoid merged commit a014f9a into rust-lang:master Sep 13, 2026
10 of 12 checks passed
@joshuachp
joshuachp deleted the ssh2-re-export-libssh2-sys-in-the-public-api/utlpzqquwpwz branch September 14, 2026 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose libssh-sys dependency to have access to SFTP error codes

2 participants