forked from hanabu/lambda-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
67 lines (55 loc) · 1.69 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
66
67
[package]
name = "lambda-web"
version = "0.2.0"
authors = ["Hanabusa Masahiro"]
description = "Run Rust web frameworks on AWS Lambda"
edition = "2018"
readme = "README.md"
repository = "https://github.com/hanabu/lambda-web"
license = "MIT"
keywords = ["lambda", "actix-web", "axum", "rocket", "warp"]
categories = ["web-programming::http-server"]
exclude = ["/docker/"]
[package.metadata.docs.rs]
all-features = true
[features]
default = ["br"]
# Enable one of your favorite web-framework
actix4 = ["actix-web", "actix-http", "actix-service"]
rocket05 = ["rocket"]
# Compress output with Brotli
br = ["brotli"]
[dependencies]
lambda_runtime = "0.5.1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
base64 = "0.13"
percent-encoding = "2"
hyper = { version = "0.14", default-features = false, features = [], optional = true }
actix-web = { version = "4", default-features = false, features = ["cookies", "macros"], optional = true }
actix-http = { version = "3", default-features = false, optional = true }
actix-service = { version = "2", optional = true }
rocket = { version = "0.5.0-rc.2", default-features = false, optional = true }
brotli = { version = "3", features = ["std"], optional = true }
[dev-dependencies]
tokio = { version = "1", features = ["macros"] }
axum = { version = "0.5", default-features = false }
warp = { version = "0.3.2", default-features = false }
tower = "0.4"
[[example]]
name = "actix"
required-features = ["actix4"]
[[example]]
name = "axum"
required-features = ["hyper"]
[[example]]
name = "rocket"
required-features = ["rocket05"]
[[example]]
name = "warp"
required-features = ["hyper"]
[profile.release]
# Size optimization
opt-level = "s"
lto = "fat"
codegen-units = 1