maj/src/lib.rs

18 lines
381 B
Rust
Raw Normal View History

2020-07-24 02:25:35 +00:00
mod response;
2020-07-25 15:03:15 +00:00
mod status_code;
2020-07-24 02:25:35 +00:00
2020-07-25 15:03:15 +00:00
pub use response::{Error as ResponseError, Response};
2020-07-24 02:25:35 +00:00
pub use status_code::StatusCode;
2020-07-25 15:03:15 +00:00
2020-07-25 17:43:04 +00:00
pub mod gemini;
2020-07-25 15:03:15 +00:00
#[cfg(feature = "client")]
mod client;
#[cfg(feature = "client")]
2020-07-25 14:56:46 +00:00
pub use client::{get, Error as ClientError};
2020-07-25 15:39:23 +00:00
#[cfg(feature = "server")]
mod server;
#[cfg(feature = "server")]
2020-07-25 21:51:37 +00:00
pub use server::{serve, serve_plain, Error as AnyError, Handler};