libsftpman/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
mod auth_type;

#[cfg(feature = "cli")]
pub mod cli;

mod errors;
mod manager;
mod model;
mod utils;

pub use auth_type::AuthType;
pub use errors::{ManagerInitError, PreflightCheckError, SftpManError};
pub use manager::Manager;
pub use model::{FilesystemMountDefinition, MountState, DEFAULT_MOUNT_PATH_PREFIX};

pub const VERSION: &str = env!("CARGO_PKG_VERSION");

// Re-exports

// Re-export to allow people to use `FilesystemMountDefinition::validate()` (which requires the `validator::Validate` trait)
pub use validator;