celld/Cargo.toml
| 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] |
| 4 | resolver = "2" |
| 5 | members = ["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] |
| 10 | lto = "fat" |
| 11 | codegen-units = 1 |
| 12 | opt-level = "s" |
| 13 | panic = "abort" |
| 14 | strip = 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] |
| 20 | inherits = "release" |
| 21 | lto = "thin" |
| 22 | codegen-units = 16 |
| 23 | incremental = true |
| 24 | # The lab image keeps symbols so `perf` on a node attributes CPU by function; |
| 25 | # the shipped release profile stays stripped. |
| 26 | strip = false |
| 27 | debug = "line-tables-only" |
| 28 | [profile.dev.package.sha2] |
| 29 | opt-level = 3 |
| 30 | [profile.dev.package.rsa] |
| 31 | opt-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] |
| 36 | aes = "0.8" |
| 37 | aes-gcm = "0.10" |
| 38 | cbc = { version = "0.1", features = ["alloc"] } |
| 39 | ctr = "0.9" |
| 40 | anyhow = "1" |
| 41 | async-trait = "0.1" |
| 42 | axum = { version = "0.7", features = ["multipart"] } |
| 43 | base64 = "0.22" |
| 44 | bytes = "1" |
| 45 | celld-logic = { path = "crates/logic" } |
| 46 | celld-ltx = { path = "crates/ltx" } |
| 47 | chrono = { version = "0.4", default-features = false, features = ["std"] } |
| 48 | ed25519-dalek = { version = "2", features = ["pkcs8"] } |
| 49 | encoding_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. |
| 59 | fastwebsockets = { version = "=0.8.1", default-features = false, features = ["upgrade", "with_axum", "unstable-split"] } |
| 60 | flate2 = "1" |
| 61 | futures-util = "0.3" |
| 62 | getrandom = "0.3" |
| 63 | glob = "0.3" |
| 64 | hex = "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. |
| 68 | hkdf = "0.12" |
| 69 | hmac = "0.12" |
| 70 | pbkdf2 = "0.12" |
| 71 | http-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. |
| 75 | h2 = "0.4.18" |
| 76 | hyper = { version = "1", features = ["client", "server", "http1"] } |
| 77 | httpdate = "1" |
| 78 | lol_html = "3.0" |
| 79 | hyper-util = { version = "0.1", features = ["tokio"] } |
| 80 | libc = "0.2" |
| 81 | lz4_flex = { version = "0.11", features = ["frame"] } |
| 82 | md-5 = "0.10" |
| 83 | nix = { version = "0.31", features = ["feature", "fs"] } |
| 84 | notify = "8" |
| 85 | nu-ansi-term = "0.50" |
| 86 | object_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. |
| 90 | parquet = { version = "59.2.0", default-features = false, features = ["zstd"] } |
| 91 | p256 = { 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. |
| 95 | p384 = { version = "0.13", features = ["ecdh", "ecdsa", "pkcs8"] } |
| 96 | p521 = { 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. |
| 100 | pkcs8 = { 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. |
| 104 | x25519-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. |
| 107 | dsa = "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. |
| 110 | crc = "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. |
| 114 | crc-fast = { version = "1.10", default-features = false, features = ["std"] } |
| 115 | percent-encoding = "2" |
| 116 | proptest = "1" |
| 117 | rand = "0.8" |
| 118 | regex = "1" |
| 119 | reqwest = { version = "0.12", default-features = false } |
| 120 | rsa = { version = "0.9", features = ["sha2"] } |
| 121 | rusqlite = "0.31" |
| 122 | rustls = { version = "0.23", default-features = false, features = ["ring"] } |
| 123 | serde = { version = "1", features = ["derive"] } |
| 124 | serde_json = { version = "1", features = ["raw_value"] } |
| 125 | sha1 = "0.10" |
| 126 | sha2 = "0.10" |
| 127 | # sqlite-vec is pre-v1, and its Rust binding is outside its compatibility |
| 128 | # policy. Pin the audited C amalgamation exactly. |
| 129 | sqlite-vec = "=0.1.9" |
| 130 | subtle = "2" |
| 131 | tempfile = "3" |
| 132 | thiserror = "2" |
| 133 | # `stats` makes `stats.allocated` and `stats.resident` readable. The pressure |
| 134 | # classifier needs their difference: the pages jemalloc keeps but no cell uses. |
| 135 | # `background_threads` makes the shipped allocator purge those freed pages on |
| 136 | # its timer. Runtime enablement alone failed in the Linux image, so the cgroup |
| 137 | # hard-cap latch stayed closed after a node shed its cells. |
| 138 | tikv-jemalloc-ctl = { version = "0.6", features = ["stats"] } |
| 139 | tikv-jemallocator = { version = "0.6", features = ["background_threads", "stats"] } |
| 140 | tokio = "1" |
| 141 | tokio-rustls = { version = "0.26", default-features = false, features = ["ring"] } |
| 142 | tokio-stream = "0.1" |
| 143 | tokio-util = { version = "0.7", features = ["io", "time"] } |
| 144 | tracing = "0.1" |
| 145 | tracing-appender = "0.2" |
| 146 | tracing-subscriber = { version = "0.3", features = ["env-filter"] } |
| 147 | url = "2" |
| 148 | urlpattern = "=0.4.2" |
| 149 | # Shared isolates need v8::Locker and Send Globals: |
| 150 | # denoland/rusty_v8#2044 and #2045. Both ship in 152.1.0, so this is an |
| 151 | # ordinary dependency again — no path override, and no hand-built archive. |
| 152 | v8 = "152.1" |
| 153 | webpki-roots = "1" |