mirror of https://github.com/chipsenkbeil/distant
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
503 B
Rust
21 lines
503 B
Rust
#![doc = include_str!("../README.md")]
|
|
|
|
#[doc = include_str!("../README.md")]
|
|
#[cfg(doctest)]
|
|
pub struct ReadmeDoctests;
|
|
|
|
mod api;
|
|
mod config;
|
|
mod constants;
|
|
pub use api::Api;
|
|
pub use config::*;
|
|
use distant_core::DistantApiServerHandler;
|
|
|
|
/// Implementation of [`DistantApiServerHandler`] using [`Api`].
|
|
pub type Handler = DistantApiServerHandler<Api>;
|
|
|
|
/// Initializes a new [`Handler`].
|
|
pub fn new_handler(config: Config) -> std::io::Result<Handler> {
|
|
Ok(Handler::new(Api::initialize(config)?))
|
|
}
|