Diffinery

homeflare/celldpublic

celld/Cargo.toml
112 lines · 4.2 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"
46fastwebsockets = { version = "0.8", default-features = false, features = ["upgrade", "with_axum"] }
47flate2 = "1"
48futures-util = "0.3"
49getrandom = "0.3"
50hex = "0.4"
51hmac = "0.12"
52http-body-util = "0.1"
53hyper = { version = "1", features = ["client", "server", "http1"] }
54hyper-util = { version = "0.1", features = ["tokio"] }
55libc = "0.2"
56lz4_flex = { version = "0.11", features = ["frame"] }
57md-5 = "0.10"
58object_store = { version = "0.11", default-features = false }
59# The native column-writer API only: no `arrow` feature, so the arrow
60# crate stack stays out of the binary. Revisit only if the telemetry
61# schema ever grows nested columns (wiki/designs/otel.md).
62parquet = { version = "59.2.0", default-features = false, features = ["zstd"] }
63p256 = { version = "0.13", features = ["ecdh", "ecdsa", "pkcs8"] }
64# The other NIST curves the Workers key surface accepts. Parsing and JWK
65# only -- signing stays on P-256, so neither needs `ecdsa`. Versions follow
66# deno's workspace.
67p384 = { version = "0.13", features = ["ecdh", "pkcs8"] }
68p521 = { version = "0.13", features = ["ecdh", "pkcs8"] }
69# Encrypted PKCS#8, for private keys that arrive password-protected. `rsa`
70# already pulls pkcs8 in; naming it here adds the pkcs5 cipher suite on top.
71# Feature set follows deno's ext/node_crypto.
72pkcs8 = { version = "0.10", features = ["std", "pkcs5", "encryption"] }
73# X25519 key parsing and generation. `static_secrets` gives the owned
74# StaticSecret that a stored key needs; the ephemeral default cannot be
75# serialized. Version and feature follow deno's ext/node_crypto.
76x25519-dalek = { version = "2", features = ["static_secrets"] }
77# DSA, for reading legacy keys. Signing with DSA is not offered; the suite
78# only parses these. Version follows deno's ext/node_crypto.
79dsa = "0.6"
80# CRC32/CRC32C/CRC64-NVME for DigestStream. Cloudflare accepts these
81# alongside the real digests because S3 and the AWS SDKs checksum with them.
82crc = "3"
83percent-encoding = "2"
84proptest = "1"
85rand = "0.8"
86regex = "1"
87reqwest = { version = "0.12", default-features = false }
88rsa = { version = "0.9", features = ["sha2"] }
89rusqlite = "0.31"
90rustls = { version = "0.23", default-features = false, features = ["ring"] }
91serde = { version = "1", features = ["derive"] }
92serde_json = "1"
93sha1 = "0.10"
94sha2 = "0.10"
95subtle = "2"
96tempfile = "3"
97thiserror = "2"
98tikv-jemallocator = "0.6"
99tokio = "1"
100tokio-rustls = { version = "0.26", default-features = false, features = ["ring"] }
101tokio-stream = "0.1"
102tokio-util = { version = "0.7", features = ["io", "time"] }
103tracing = "0.1"
104tracing-appender = "0.2"
105tracing-subscriber = { version = "0.3", features = ["env-filter"] }
106url = "2"
107urlpattern = "=0.4.2"
108# D1 (wiki/designs/isolate-threading.md) needs v8::Locker and Send Globals:
109# denoland/rusty_v8#2044 and #2045. Both ship in 152.1.0, so this is an
110# ordinary dependency again — no path override, and no hand-built archive.
111v8 = "152.1"
112webpki-roots = "1"