File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 6
6
//! There are two mechanisms available for defining a Lambda function:
7
7
//! 1. The `#[lambda]` attribute, which generates the boilerplate to
8
8
//! to launch and run a Lambda function.
9
- //!
9
+ //!
10
10
//! The `#[lambda]` attribute _must_ be placed on an asynchronous main function.
11
11
//! However, as asynchronous main functions are not legal valid Rust
12
12
//! this means that the main function must also be decorated using a
13
13
//! `#[tokio::main]` attribute macro. This is available from
14
14
//! the [tokio](https://github.com/tokio-rs/tokio) crate.
15
- //!
15
+ //!
16
16
//! 2. A type that conforms to the [`Handler`] trait. This type can then be passed
17
17
//! to the the `lambda::run` function, which launches and runs the Lambda runtime.
18
18
//!
You can’t perform that action at this time.
0 commit comments