You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-21Lines changed: 19 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -13,42 +13,40 @@ This package makes it easy to run AWS Lambda Functions written in Rust. This wor
13
13
The code below creates a simple function that receives an event with a `greeting` and `name` field and returns a `GreetingResponse` message for the given name and greeting. Notice: to run these examples, we require a minimum Rust version of 1.31.
14
14
15
15
```rust,no_run
16
-
extern crate lambda_runtime as lambda;
17
-
extern crate serde_derive;
18
-
extern crate log;
19
-
extern crate simple_logger;
20
-
21
-
use serde_derive::{Serialize, Deserialize};
22
-
use lambda::{lambda, Context, error::HandlerError};
23
-
use log::error;
24
16
use std::error::Error;
25
17
26
-
#[derive(Serialize, Deserialize)]
27
-
struct GreetingEvent {
28
-
greeting: String,
29
-
name: String,
18
+
use lambda_runtime::{error::HandlerError, lambda, Context};
0 commit comments