diana_aws_lambda/lib.rs
1#![forbid(unsafe_code)]
2#![deny(missing_docs)]
3
4/*!
5This is [Diana's](https://arctic-hen7.github.io/diana) integration crate for AWS Lambda and its derivatives (like Netlify), which enables the
6easy deployment of a Diana system on those platforms. For more information, see
7[the documentation for Diana](https://github.com/arctic-hen7/diana) and [the book](https://arctic-hen7.github.io/diana).
8
9This crate can be used to create handlers for AWS Lambda itself, or any system that wraps it, like Netlify. Handlers created with this crate
10will compile, but will not run without being deployed fully. In development, you should use something like Actix Web (and
11[its Diana integration](https://crates.io/crates/diana-actix-web)) to deploy a serverful system for queries and mutations, which you can more
12easily work with. When you're ready, you can switch to this crate without changing any part of your schema logic. Full examples are in the book.
13*/
14
15mod run_aws_req;
16
17pub use crate::run_aws_req::{run_aws_req, AwsError};
18
19// Users also shouldn't have to install the Netlify stuff themselves for basic usage
20pub use netlify_lambda_http;