-
Notifications
You must be signed in to change notification settings - Fork 412
Expand file tree
/
Copy pathCargo.toml
More file actions
107 lines (101 loc) · 3.14 KB
/
Cargo.toml
File metadata and controls
107 lines (101 loc) · 3.14 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[workspace]
members = [
"worker",
"worker-build",
"worker-macros",
"test",
"worker-sys",
"examples/*",
"test/container-echo",
"benchmark",
]
exclude = [
"examples/coredump",
"examples/axum",
"templates/*",
"wasm-bindgen",
"wasm-streams",
"generated",
]
resolver = "2"
[workspace.dependencies]
async-trait = "0.1.88"
cfg-if = "1.0.1"
chrono = { version = "0.4.41", default-features = false, features = [
"wasmbind",
] }
futures-channel = "0.3.31"
futures-util = { version = "0.3.31", default-features = false }
http = "1.3"
js-sys = { version = "0.3.100" }
serde = { version = "1.0.164", features = ["derive"] }
strum = { version = "0.27", features = ["derive"] }
serde_json = "1.0.140"
serde-wasm-bindgen = "0.6.5"
syn = "2.0.17"
trybuild = "1.0"
proc-macro2 = "1.0.60"
quote = "1.0.28"
wasm-bindgen = { version = "0.2.123" }
wasm-bindgen-cli-support = { version = "0.2.123" }
wasm-bindgen-futures = { version = "0.4.73" }
wasm-bindgen-macro-support = { version = "0.2.123" }
wasm-bindgen-shared = { version = "0.2.123" }
wasm-bindgen-test = { version = "0.3.73" }
wasm-streams = { version = "0.6.0" }
web-sys = { version = "0.3.100", features = [
"AbortController",
"AbortSignal",
"BinaryType",
"Blob",
"Cache",
"CacheQueryOptions",
"CacheStorage",
"CloseEvent",
"console",
"ErrorEvent",
"File",
"FormData",
"Headers",
"MessageEvent",
"Performance",
"ProgressEvent",
"ReadableStream",
"ReadableStreamDefaultReader",
"Request",
"RequestInit",
"RequestCache",
"RequestRedirect",
"Response",
"ResponseInit",
"TransformStream",
"WebSocket",
"WorkerGlobalScope",
"WritableStream",
"WritableStreamDefaultWriter",
] }
worker = { version = "0.8.4", path = "worker", features = ["queue", "d1", "axum", "timezone"] }
worker-codegen = { path = "worker-codegen", version = "0.2.0" }
worker-macros = { version = "0.8.4", path = "worker-macros", features = ["queue"] }
worker-sys = { version = "0.8.4", path = "worker-sys", features = ["d1", "queue"] }
[profile.release]
# rustc supports two "optimize for size" levels: opt-level = "s" and "z".
# These names were inherited from clang / LLVM and are not too descriptive
# but "z" is meant to give the idea that it produces smaller binaries than "s".
# https://docs.rust-embedded.org/book/unsorted/speed-vs-size.html#optimize-for-size
opt-level = "z"
# by compiling as a single codegen unit (i.e. not in parallel),
# it's possible to reduce size even further at the expense of
# compilation time
codegen-units = 1
# by enabling link-time optimization, we can reduce size even further
# by telling cargo to optimize at the link stage (in addition to the
# normal optimizations during the compilation stage)
lto = true
# by overriding our dependencies' compilation settings, we can further optimize for size
# https://docs.rust-embedded.org/book/unsorted/speed-vs-size.html#optimizing-dependencies
[profile.release.package."*"]
codegen-units = 1
opt-level = "z"
# These are local patches we use to test against local wasm bindgen
# We always align on the exact stable wasm bindgen version for releases