-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
46 lines (41 loc) · 1.47 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
[package]
name = "openworkers-runner"
version = "0.1.6"
edition = "2021"
default-run = "openworkers-runner"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
actix-web = "4.5.1"
bytes = "1.6.0"
log = "0.4.21"
tokio = "1.36.0"
env_logger = "0.11.2"
http_v02 = { package = "http", version = "0.2.12" }
sqlx = { version = "0.7", features = [ "runtime-tokio", "postgres", "uuid", "bigdecimal", "rust_decimal" ] }
openworkers-runtime ={ git = "https://github.com/openworkers/openworkers-runtime", tag = "v0.1.6"}
# openworkers-runtime = { path = "../openworkers-runtime" }
nats = "0.24.1"
serde_json = "1.0.114"
serde = { version = "1.0.197", features = ["derive"] }
dotenv = "0.15.0"
base64 = "0.22.0"
swc = { version = "0.273.22", features = ["tokio"] }
swc_common = "0.33.20"
swc_ecma_ast = "0.112.6"
swc_ecma_parser = "0.143.10"
swc_ecma_transforms_typescript = "0.188.17"
swc_ecma_visit = "0.98.7"
# https://doc.rust-lang.org/cargo/reference/profiles.html
# https://github.com/johnthagen/min-sized-rust?tab=readme-ov-file#minimizing-rust-binary-size
[profile.release]
strip = true # Automatically strip symbols from the binary.
opt-level = "z" # Optimize for size.
incremental = true # Enable incremental compilation.
codegen-units = 1 # Use a single codegen unit to optimize for size.
lto = true # Enable link-time optimization.
[[bin]]
name = "openworkers-runner"
path = "bin/main.rs"
[[bin]]
name = "snapshot"
path = "bin/snapshot.rs"