1pub use lambda_runtime::Error as LambdaError;
3
4#[cfg(test)]
5#[cfg(any(feature = "actix4", feature = "rocket05", feature = "hyper"))]
6mod test_consts;
7
8#[cfg(any(feature = "actix4", feature = "rocket05", feature = "hyper"))]
9pub(crate) mod brotli;
10#[cfg(any(feature = "actix4", feature = "rocket05", feature = "hyper"))]
11mod request;
12
13#[cfg(feature = "actix4")]
14mod actix4;
15#[cfg(feature = "actix4")]
16pub use actix4::run_actix_on_lambda;
17#[cfg(feature = "actix4")]
18pub use actix_web;
19
20#[cfg(feature = "rocket05")]
21mod rocket05;
22#[cfg(feature = "rocket05")]
23pub use rocket;
24#[cfg(feature = "rocket05")]
25pub use rocket05::launch_rocket_on_lambda;
26
27#[cfg(feature = "hyper")]
28mod hyper014;
29#[cfg(feature = "hyper")]
30pub use hyper014::run_hyper_on_lambda;
31
32pub fn is_running_on_lambda() -> bool {
34 std::env::var("AWS_LAMBDA_RUNTIME_API").is_ok()
35}