-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
68 lines (55 loc) · 1.99 KB
/
Cargo.toml
File metadata and controls
68 lines (55 loc) · 1.99 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
[package]
name = "openworkers-runtime-deno"
version = "0.5.1"
edition = "2024"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
actix = ["dep:actix-web", "openworkers-core/actix"]
[dependencies]
# Common types
# openworkers-core = { path = "../openworkers-core", features = ["deno", "testing"] }
openworkers-core = { git = "https://github.com/openworkers/openworkers-core", tag = "v0.5.1", features = ["deno", "testing"] }
bytes = { version = "1.11.0", features = ["serde"] }
deno_console = "0.221.0"
deno_core = "0.363.0"
deno_crypto = "0.234.0"
deno_fetch = "0.244.0"
deno_permissions = "0.79.0"
deno_url = "0.221.0"
deno_web = "0.251.0"
deno_webidl = "0.220.0"
env_logger = "0.11.8"
log = "0.4.28"
serde = { version = "1.0.217", features = ["derive"] }
tokio = { version = "1.43.0", features = ["full"] }
# For CPU time measurement and enforcement (Unix-only)
libc = "0.2"
once_cell = "1.21.3"
rustls = { version = "0.23", default-features = false, features = ["ring"] }
tokio-stream = "0.1"
# Optional dependencies for examples
actix-web = { version = "4.12.1", features = ["macros"], optional = true }
[target.'cfg(target_os = "linux")'.dependencies]
signal-hook = "0.3"
signal-hook-tokio = { version = "0.3", features = ["futures-v0_3"] }
futures = "0.3"
[[example]]
name = "serve-new"
required-features = ["actix"]
[[example]]
name = "serve-same"
required-features = ["actix"]
# https://doc.rust-lang.org/cargo/reference/profiles.html
# https://github.com/johnthagen/min-sized-rust?tab=readme-ov-file#minimizing-rust-binary-size
[dev-dependencies]
ntest = "0.9"
criterion = { version = "0.5", features = ["async_tokio"] }
[[bench]]
name = "generic_benchmark"
harness = false
[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.