-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
54 lines (49 loc) · 1.46 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
[package]
name = "worker-route"
authors = ["Seng Ho <[email protected]>"]
categories = ["network-programming", "workers", "serverless", "web-programming"]
description = "Route handlers an data extractor for Cloudflare Workers."
documentation = "https://docs.rs/worker-route"
edition = "2021"
keywords = ["http", "workers", "web", "serverless"]
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/sengho66/worker-route"
version = "0.0.3"
exclude = ["tests", "examples", ".config", ".rustfmt.toml", "clippy.toml"]
[dependencies]
worker = { git = "https://github.com/cloudflare/workers-rs", version = "0.0.18" }
http = "0.2.9"
serde = { version = "1.0.164", features = ["derive"] }
serde_json = "1.0.96"
mime = "0.3.17"
futures = "0.3.28"
cookie = { version = "0.17.0", optional = true }
serde_qs = "0.12.0"
worker-route-macro = { version = "0.0.3", path = "./worker-route-macro" }
paste = "1.0"
[features]
queue = ["worker/queue"]
d1 = ["worker/d1"]
experimental = []
cookies = ["cookie"]
[package.metadata.docs.rs]
# document all features
all-features = true
# defines the configuration attribute `docsrs`
rustdoc-args = ["--cfg", "docsrs"]
[workspace]
members = [
# some examples are yet to be pushed
"worker-route-macro",
"examples/simple",
"examples/with-data",
"examples/cors",
"examples/custom_response",
"examples/custom_error",
"examples/crypto-fetcher",
]
[profile.release]
opt-level = "z"
codegen-units = 1
lto = true