Diffinery

homeflare/celldpublic

celld/Cargo.toml
129 lines · 5.3 KBRaw History
1# Clean-sheet celld workspace. `crates/logic` owns all behavioral state and
2# decisions; `crates/celld` is only an effect executor and adapter host.
3[workspace]
4resolver = "2"
5members = ["crates/*"]
6
7# Size-tuned: fat LTO prunes unused dependency code, panic=abort drops
8# unwind tables. opt-level "s" (not "z") — measure RPS before trading further.
9[profile.release]
10lto = "fat"
11codegen-units = 1
12opt-level = "s"
13panic = "abort"
14strip = true
15
16# The lab fast loop: release optimization minus the fat-LTO relink that
17# dominates rebuild time, plus incremental compilation. Shipped artifacts
18# stay on `release`.
19[profile.lab]
20inherits = "release"
21lto = "thin"
22codegen-units = 16
23incremental = true
24[profile.dev.package.sha2]
25opt-level = 3
26[profile.dev.package.rsa]
27opt-level = 3
28
29# Every direct dependency lives here so the crates can never drift onto two
30# versions of the same crate; members add their own features.
31[workspace.dependencies]
32aes = "0.8"
33aes-gcm = "0.10"
34cbc = { version = "0.1", features = ["alloc"] }
35ctr = "0.9"
36anyhow = "1"
37async-trait = "0.1"
38axum = { version = "0.7", features = ["multipart"] }
39base64 = "0.22"
40bytes = "1"
41celld-logic = { path = "crates/logic" }
42celld-ltx = { path = "crates/ltx" }
43chrono = { version = "0.4", default-features = false, features = ["std"] }
44ed25519-dalek = { version = "2", features = ["pkcs8"] }
45encoding_rs = "0.8"
46# unstable-split gives the read and write halves as separate objects. The
47# tunnel needs them: a WebSocket read is not cancel-safe, so a live read
48# future must survive while the same socket is written, and that is only
49# possible when the halves are not one borrow. See tests/p0/runtime/tunnel_cancel.rs.
50#
51# The feature is unstable by name, so a 0.8.x release can rename or drop it
52# without upstream calling that a break, and a caret range would take it. Deno
53# Land maintains fastwebsockets, so celld carries that risk knowingly; the
54# version is exact to keep the upgrade a decision rather than a surprise.
55fastwebsockets = { version = "=0.8.1", default-features = false, features = ["upgrade", "with_axum", "unstable-split"] }
56flate2 = "1"
57futures-util = "0.3"
58getrandom = "0.3"
59hex = "0.4"
60hmac = "0.12"
61http-body-util = "0.1"
62hyper = { version = "1", features = ["client", "server", "http1"] }
63hyper-util = { version = "0.1", features = ["tokio"] }
64libc = "0.2"
65lz4_flex = { version = "0.11", features = ["frame"] }
66md-5 = "0.10"
67object_store = { version = "0.11", default-features = false }
68# The native column-writer API only: no `arrow` feature, so the arrow
69# crate stack stays out of the binary. Revisit only if the telemetry
70# schema ever grows nested columns.
71parquet = { version = "59.2.0", default-features = false, features = ["zstd"] }
72p256 = { version = "0.13", features = ["ecdh", "ecdsa", "pkcs8"] }
73# The other NIST curves the Workers key surface accepts. Parsing and JWK
74# only -- signing stays on P-256, so neither needs `ecdsa`. Versions follow
75# deno's workspace.
76p384 = { version = "0.13", features = ["ecdh", "pkcs8"] }
77p521 = { version = "0.13", features = ["ecdh", "pkcs8"] }
78# Encrypted PKCS#8, for private keys that arrive password-protected. `rsa`
79# already pulls pkcs8 in; naming it here adds the pkcs5 cipher suite on top.
80# Feature set follows deno's ext/node_crypto.
81pkcs8 = { version = "0.10", features = ["std", "pkcs5", "encryption"] }
82# X25519 key parsing and generation. `static_secrets` gives the owned
83# StaticSecret that a stored key needs; the ephemeral default cannot be
84# serialized. Version and feature follow deno's ext/node_crypto.
85x25519-dalek = { version = "2", features = ["static_secrets"] }
86# DSA, for reading legacy keys. Signing with DSA is not offered; the suite
87# only parses these. Version follows deno's ext/node_crypto.
88dsa = "0.6"
89# CRC32/CRC32C/CRC64-NVME for DigestStream. Cloudflare accepts these
90# alongside the real digests because S3 and the AWS SDKs checksum with them.
91crc = "3"
92percent-encoding = "2"
93proptest = "1"
94rand = "0.8"
95regex = "1"
96reqwest = { version = "0.12", default-features = false }
97rsa = { version = "0.9", features = ["sha2"] }
98rusqlite = "0.31"
99rustls = { version = "0.23", default-features = false, features = ["ring"] }
100serde = { version = "1", features = ["derive"] }
101serde_json = "1"
102sha1 = "0.10"
103sha2 = "0.10"
104# sqlite-vec is pre-v1, and its Rust binding is outside its compatibility
105# policy. Pin the audited C amalgamation exactly.
106sqlite-vec = "=0.1.9"
107subtle = "2"
108tempfile = "3"
109thiserror = "2"
110# `stats` is what makes `stats.allocated` and `stats.resident` readable. The
111# pressure classifier needs their difference: the pages jemalloc keeps but no
112# cell uses. Without it a node that sheds its whole working set stays latched
113# on an RSS number the allocator, not celld, controls.
114tikv-jemalloc-ctl = { version = "0.6", features = ["stats"] }
115tikv-jemallocator = { version = "0.6", features = ["stats"] }
116tokio = "1"
117tokio-rustls = { version = "0.26", default-features = false, features = ["ring"] }
118tokio-stream = "0.1"
119tokio-util = { version = "0.7", features = ["io", "time"] }
120tracing = "0.1"
121tracing-appender = "0.2"
122tracing-subscriber = { version = "0.3", features = ["env-filter"] }
123url = "2"
124urlpattern = "=0.4.2"
125# Shared isolates need v8::Locker and Send Globals:
126# denoland/rusty_v8#2044 and #2045. Both ship in 152.1.0, so this is an
127# ordinary dependency again — no path override, and no hand-built archive.
128v8 = "152.1"
129webpki-roots = "1"