Diffinery

homeflare/celldpublic

celld/Cargo.toml
141 lines · 5.8 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"
63hex = "0.4"
64# The two node:crypto KDFs. Both crates already reach this build without a
65# line here -- `pbkdf2` through `pkcs5`, `hkdf` through `elliptic-curve` --
66# so declaring them costs no compile time and adds no supply-chain surface.
67hkdf = "0.12"
68hmac = "0.12"
69pbkdf2 = "0.12"
70http-body-util = "0.1"
71hyper = { version = "1", features = ["client", "server", "http1"] }
72hyper-util = { version = "0.1", features = ["tokio"] }
73libc = "0.2"
74lz4_flex = { version = "0.11", features = ["frame"] }
75md-5 = "0.10"
76nix = { version = "0.31", features = ["feature", "fs"] }
77notify = "8"
78nu-ansi-term = "0.50"
79object_store = { version = "0.12", default-features = false }
80# The native column-writer API only: no `arrow` feature, so the arrow
81# crate stack stays out of the binary. Revisit only if the telemetry
82# schema ever grows nested columns.
83parquet = { version = "59.2.0", default-features = false, features = ["zstd"] }
84p256 = { version = "0.13", features = ["ecdh", "ecdsa", "pkcs8"] }
85# The other NIST curves the Workers key surface accepts. Parsing and JWK
86# only -- signing stays on P-256, so neither needs `ecdsa`. Versions follow
87# deno's workspace.
88p384 = { version = "0.13", features = ["ecdh", "pkcs8"] }
89p521 = { version = "0.13", features = ["ecdh", "pkcs8"] }
90# Encrypted PKCS#8, for private keys that arrive password-protected. `rsa`
91# already pulls pkcs8 in; naming it here adds the pkcs5 cipher suite on top.
92# Feature set follows deno's ext/node_crypto.
93pkcs8 = { version = "0.10", features = ["std", "pkcs5", "encryption"] }
94# X25519 key parsing and generation. `static_secrets` gives the owned
95# StaticSecret that a stored key needs; the ephemeral default cannot be
96# serialized. Version and feature follow deno's ext/node_crypto.
97x25519-dalek = { version = "2", features = ["static_secrets"] }
98# DSA, for reading legacy keys. Signing with DSA is not offered; the suite
99# only parses these. Version follows deno's ext/node_crypto.
100dsa = "0.6"
101# CRC32/CRC32C/CRC64-NVME for DigestStream. Cloudflare accepts these
102# alongside the real digests because S3 and the AWS SDKs checksum with them.
103crc = "3"
104percent-encoding = "2"
105proptest = "1"
106rand = "0.8"
107regex = "1"
108reqwest = { version = "0.12", default-features = false }
109rsa = { version = "0.9", features = ["sha2"] }
110rusqlite = "0.31"
111rustls = { version = "0.23", default-features = false, features = ["ring"] }
112serde = { version = "1", features = ["derive"] }
113serde_json = "1"
114sha1 = "0.10"
115sha2 = "0.10"
116# sqlite-vec is pre-v1, and its Rust binding is outside its compatibility
117# policy. Pin the audited C amalgamation exactly.
118sqlite-vec = "=0.1.9"
119subtle = "2"
120tempfile = "3"
121thiserror = "2"
122# `stats` is what makes `stats.allocated` and `stats.resident` readable. The
123# pressure classifier needs their difference: the pages jemalloc keeps but no
124# cell uses. Without it a node that sheds its whole working set stays latched
125# on an RSS number the allocator, not celld, controls.
126tikv-jemalloc-ctl = { version = "0.6", features = ["stats"] }
127tikv-jemallocator = { version = "0.6", features = ["stats"] }
128tokio = "1"
129tokio-rustls = { version = "0.26", default-features = false, features = ["ring"] }
130tokio-stream = "0.1"
131tokio-util = { version = "0.7", features = ["io", "time"] }
132tracing = "0.1"
133tracing-appender = "0.2"
134tracing-subscriber = { version = "0.3", features = ["env-filter"] }
135url = "2"
136urlpattern = "=0.4.2"
137# Shared isolates need v8::Locker and Send Globals:
138# denoland/rusty_v8#2044 and #2045. Both ship in 152.1.0, so this is an
139# ordinary dependency again — no path override, and no hand-built archive.
140v8 = "152.1"
141webpki-roots = "1"