Diffinery

homeflare/celldpublic

celld/Cargo.toml
162 lines · 7.1 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# The lab image keeps symbols so `perf` on a node attributes CPU by function;
25# the shipped release profile stays stripped.
26strip = false
27debug = "line-tables-only"
28[profile.dev.package.sha2]
29opt-level = 3
30[profile.dev.package.rsa]
31opt-level = 3
32
33# Every direct dependency lives here so the crates can never drift onto two
34# versions of the same crate; members add their own features.
35[workspace.dependencies]
36aes = "0.8"
37aes-gcm = "0.10"
38cbc = { version = "0.1", features = ["alloc"] }
39ctr = "0.9"
40anyhow = "1"
41async-trait = "0.1"
42axum = { version = "0.7", features = ["multipart"] }
43base64 = "0.22"
44bytes = "1"
45celld-logic = { path = "crates/logic" }
46celld-ltx = { path = "crates/ltx" }
47chrono = { version = "0.4", default-features = false, features = ["std"] }
48ed25519-dalek = { version = "2", features = ["pkcs8"] }
49encoding_rs = "0.8"
50# unstable-split gives the read and write halves as separate objects. The
51# tunnel needs them: a WebSocket read is not cancel-safe, so a live read
52# future must survive while the same socket is written, and that is only
53# possible when the halves are not one borrow.
54#
55# The feature is unstable by name, so a 0.8.x release can rename or drop it
56# without upstream calling that a break, and a caret range would take it. Deno
57# Land maintains fastwebsockets, so celld carries that risk knowingly; the
58# version is exact to keep the upgrade a decision rather than a surprise.
59fastwebsockets = { version = "=0.8.1", default-features = false, features = ["upgrade", "with_axum", "unstable-split"] }
60flate2 = "1"
61futures-util = "0.3"
62getrandom = "0.3"
63glob = "0.3"
64hex = "0.4"
65# The two node:crypto KDFs. Both crates already reach this build without a
66# line here -- `pbkdf2` through `pkcs5`, `hkdf` through `elliptic-curve` --
67# so declaring them costs no compile time and adds no supply-chain surface.
68hkdf = "0.12"
69hmac = "0.12"
70pbkdf2 = "0.12"
71http-body-util = "0.1"
72# hyper also accepts h2 releases before 0.4.18, which retain the remotely
73# triggerable resource-exhaustion advisory. Keep a direct floor here because a
74# lockfile-only update does not preserve that security boundary when resolved.
75h2 = "0.4.18"
76hyper = { version = "1", features = ["client", "server", "http1"] }
77httpdate = "1"
78lol_html = "3.0"
79hyper-util = { version = "0.1", features = ["tokio"] }
80libc = "0.2"
81lz4_flex = { version = "0.11", features = ["frame"] }
82md-5 = "0.10"
83nix = { version = "0.31", features = ["feature", "fs"] }
84notify = "8"
85nu-ansi-term = "0.50"
86object_store = { version = "0.12", default-features = false }
87# The native column-writer API only: no `arrow` feature, so the arrow
88# crate stack stays out of the binary. Revisit only if the telemetry
89# schema ever grows nested columns.
90parquet = { version = "59.2.0", default-features = false, features = ["zstd"] }
91p256 = { version = "0.13", features = ["ecdh", "ecdsa", "pkcs8"] }
92# The other NIST curves the Workers key surface accepts. Node-compatible key
93# derivation and signatures use them beside the Web Crypto parsing surface.
94# Versions follow deno's workspace.
95p384 = { version = "0.13", features = ["ecdh", "ecdsa", "pkcs8"] }
96p521 = { version = "0.13", features = ["ecdh", "ecdsa", "pkcs8"] }
97# Encrypted PKCS#8, for private keys that arrive password-protected. `rsa`
98# already pulls pkcs8 in; naming it here adds the pkcs5 cipher suite on top.
99# Feature set follows deno's ext/node_crypto.
100pkcs8 = { version = "0.10", features = ["std", "pkcs5", "encryption"] }
101# X25519 key parsing and generation. `static_secrets` gives the owned
102# StaticSecret that a stored key needs; the ephemeral default cannot be
103# serialized. Version and feature follow deno's ext/node_crypto.
104x25519-dalek = { version = "2", features = ["static_secrets"] }
105# DSA, for reading legacy keys. Signing with DSA is not offered; the suite
106# only parses these. Version follows deno's ext/node_crypto.
107dsa = "0.6"
108# CRC32/CRC32C/CRC64-NVME for DigestStream. Cloudflare accepts these
109# alongside the real digests because S3 and the AWS SDKs checksum with them.
110crc = "3"
111# LTX uses CRC-64/GO-ISO for every file and for snapshot page checksums. The
112# generic `crc` crate above does not use the SIMD folding path that large-cell
113# restore needs.
114crc-fast = { version = "1.10", default-features = false, features = ["std"] }
115percent-encoding = "2"
116proptest = "1"
117rand = "0.8"
118regex = "1"
119reqwest = { version = "0.12", default-features = false }
120rsa = { version = "0.9", features = ["sha2"] }
121rusqlite = "0.31"
122# 0.23.45 fixes GHSA-2mjx-qc3c-rqvc, where rustls accepts a TLS 1.3
123# handshake message across an encryption level boundary.
124rustls = { version = "0.23.46", default-features = false, features = ["ring"] }
125# celld never imports rustls-webpki; this entry only sets a floor. 0.103.16
126# rejects every chain through the eight eMudhra intermediate CA certificates
127# whose private keys are public, and rustls itself accepts 0.103.14. Without
128# the floor, a resolver can select a version that still trusts those chains
129# on a host whose own trust store still holds the emSign ECC root.
130rustls-webpki = { version = "0.103.16", default-features = false }
131serde = { version = "1", features = ["derive"] }
132serde_json = { version = "1", features = ["raw_value"] }
133sha1 = "0.10"
134sha2 = "0.10"
135# sqlite-vec is pre-v1, and its Rust binding is outside its compatibility
136# policy. Pin the audited C amalgamation exactly.
137sqlite-vec = "=0.1.9"
138subtle = "2"
139tempfile = "3"
140thiserror = "2"
141# `stats` makes `stats.allocated` and `stats.resident` readable. The pressure
142# classifier needs their difference: the pages jemalloc keeps but no cell uses.
143# `background_threads` makes the shipped allocator purge those freed pages on
144# its timer. Runtime enablement alone failed in the Linux image, so the cgroup
145# hard-cap latch stayed closed after a node shed its cells.
146tikv-jemalloc-ctl = { version = "0.6", features = ["stats"] }
147tikv-jemallocator = { version = "0.6", features = ["background_threads", "stats"] }
148tokio = "1"
149tokio-rustls = { version = "0.26", default-features = false, features = ["ring"] }
150tokio-stream = "0.1"
151tokio-util = { version = "0.7", features = ["io", "time"] }
152tracing = "0.1"
153tracing-appender = "0.2"
154tracing-subscriber = { version = "0.3", features = ["env-filter"] }
155url = "2"
156urlpattern = "=0.4.2"
157# Shared isolates need v8::Locker and Send Globals:
158# denoland/rusty_v8#2044 and #2045. Both ship in 152.1.0, so this is an
159# ordinary dependency again — no path override, and no hand-built archive.
160v8 = "152.1"
161# 1.0.10 drops the emSign ECC root, whose intermediate CA keys are public.
162webpki-roots = "1.0.10"