proxmox/proxmox-router/src/lib.rs
Fabian Grünbichler 66ace63618 router: make hyper/http optional
but enable it by default.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2022-09-07 09:17:45 +02:00

30 lines
715 B
Rust

//! API Router and Command Line Interface utilities.
pub mod format;
#[cfg(feature = "cli")]
pub mod cli;
// this is public so the `http_err!` macro can access `http::StatusCode` through it
#[doc(hidden)]
#[cfg(feature = "server")]
pub mod error;
mod permission;
mod router;
mod rpc_environment;
mod serializable_return;
#[doc(inline)]
#[cfg(feature = "server")]
pub use error::HttpError;
pub use permission::*;
pub use router::*;
pub use rpc_environment::{RpcEnvironment, RpcEnvironmentType};
pub use serializable_return::SerializableReturn;
// make list_subdirs_api_method! work without an explicit proxmox-schema dependency:
#[doc(hidden)]
pub use proxmox_schema::ObjectSchema as ListSubdirsObjectSchema;