Skip to main content

axum_frontend/
lib.rs

1//!
2#![doc = include_str!("../README.md")]
3#![deny(missing_docs)]
4
5mod embed;
6pub use embed::{embed_router, embed_router_with};
7pub use rust_embed::{Embed, RustEmbed};
8
9mod spa;
10pub use spa::SpaOptions;
11
12mod static_dir;
13pub use static_dir::{static_router, static_router_with};
14
15#[cfg(feature = "dev")]
16mod dev;
17#[cfg(feature = "dev")]
18pub use dev::{DevConfig, DevServer, dev_router, shutdown_requested, wait_until_ready};
19
20#[cfg(test)]
21mod tests {
22  // Smoke test: if this compiles and runs, the crate built for the active
23  // feature set. Per-feature behavior is covered by the integration tests.
24  #[test]
25  fn crate_builds() {}
26}