Skip to main content

tower_embed_core/
lib.rs

1//! Core functionalities of tower-embed.
2
3#[cfg(not(feature = "tokio"))]
4compile_error!("Only tokio runtime is supported, and it is required to use `tower-embed`.");
5
6use std::error::Error;
7
8#[doc(hidden)]
9pub use http;
10
11pub use self::{body::*, embedded::*, service::*};
12
13mod body;
14mod embedded;
15mod service;
16
17#[cfg(feature = "astro")]
18pub mod astro;
19pub mod headers;
20pub mod response;
21
22#[cfg(feature = "tokio")]
23pub mod file;
24
25/// Type-erased error type.
26pub type BoxError = Box<dyn Error + Send + Sync>;