rivet 0.1.0

Rivet framework crates and adapters.
Documentation
pub mod core {
    pub use rivet_core::*;
}

pub mod http {
    pub use rivet_http::*;
}

pub mod routing {
    pub use rivet_routing::*;
}

pub mod logger {
    pub use rivet_logger::*;
}

pub mod support {
    pub use rivet_support::*;
}

pub mod foundation {
    pub use rivet_foundation::*;
}

pub mod config {
    pub use rivet_config::*;
}

#[cfg(any(
    all(
        feature = "axum",
        any(
            feature = "actix",
            feature = "rocket",
            feature = "worker",
            feature = "lambda"
        )
    ),
    all(
        feature = "actix",
        any(feature = "rocket", feature = "worker", feature = "lambda")
    ),
    all(feature = "rocket", any(feature = "worker", feature = "lambda")),
    all(feature = "worker", feature = "lambda")
))]
compile_error!("features `axum`, `actix`, `rocket`, `worker`, and `lambda` are mutually exclusive");

#[cfg(all(feature = "worker", not(target_arch = "wasm32")))]
compile_error!("feature `worker` requires target `wasm32-unknown-unknown`");

#[cfg(feature = "axum")]
pub use rivet_adapter_axum::serve;

#[cfg(feature = "actix")]
pub use rivet_adapter_actix::serve;

#[cfg(feature = "rocket")]
pub use rivet_adapter_rocket::serve;

#[cfg(all(feature = "worker", target_arch = "wasm32"))]
pub use rivet_adapter_worker::{
    configure, configure_with_options, handle, serve, AdapterError, AdapterOptions,
};

#[cfg(feature = "lambda")]
pub use rivet_adapter_lambda::{
    configure, configure_with_options, handle, serve, AdapterError, AdapterOptions,
};

#[cfg(any(feature = "axum", feature = "actix", feature = "rocket"))]
pub use tokio;