Skip to main content

passalong_ssh/
lib.rs

1//! SSH/SFTP storage backend for `passalong`.
2//!
3//! This crate is kept free of CLI dependencies so GUI and Android front-ends
4//! can reuse it.
5
6pub mod backend;
7pub mod connect;
8pub mod error;
9pub mod host_key;
10pub mod sftp_fs;
11
12pub use backend::{open_ssh_store, register};
13pub use connect::fetch_host_key;
14pub use host_key::DiscoveredKey;
15
16/// Version of this crate, shared by every crate in the workspace.
17pub const VERSION: &str = env!("CARGO_PKG_VERSION");
18
19#[cfg(test)]
20mod tests {
21    #[test]
22    fn version_is_the_workspace_version() {
23        assert_eq!(super::VERSION, "0.3.0");
24    }
25}