Diffinery

homeflare/celldpublic

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