forked from aws-samples/serverless-rust-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
65 lines (57 loc) · 1.54 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[package]
name = "products"
version = "0.1.0"
license-file = "LICENSE"
edition = "2021"
[dependencies]
async-trait = "0.1"
aws-config = "0.2"
aws-sdk-dynamodb = "0.2"
aws-sdk-eventbridge = "0.2"
aws-smithy-client = { version = "0.32", features = ["test-util"] }
aws-smithy-http = "0.32"
aws-types = "0.2"
futures = { version = "0.3", features = ["std"] }
lambda_runtime = { version = "0.4", optional = true }
lambda_http = { version = "0.4", optional = true }
rayon = { version = "1.5", optional = true }
serde = "1"
serde_json = "1.0"
tracing = "0.1"
tracing-subscriber = { version = "0.2", features = ["fmt", "json"] }
tokio = { version = "1", features = ["full"] }
[dev-dependencies]
# Only allow hardcoded credentials for unit tests
aws-types = { version = "0.2", features = ["hardcoded-credentials"] }
float-cmp = "0.9"
http = "0.2"
rand = "0.8"
reqwest = { version = "0.11", features = ["json"] }
[features]
default = ["lambda"]
lambda = ["lambda_runtime", "lambda_http", "rayon"]
[[bin]]
name = "delete-product"
path = "src/bin/lambda/delete-product.rs"
test = false
required-features = ["lambda"]
[[bin]]
name = "get-product"
path = "src/bin/lambda/get-product.rs"
test = false
required-features = ["lambda"]
[[bin]]
name = "get-products"
path = "src/bin/lambda/get-products.rs"
test = false
required-features = ["lambda"]
[[bin]]
name = "put-product"
path = "src/bin/lambda/put-product.rs"
test = false
required-features = ["lambda"]
[[bin]]
name = "dynamodb-streams"
path = "src/bin/lambda/dynamodb-streams.rs"
test = false
required-features = ["lambda"]