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 | [profile.dev.package.sha2] |
| 25 | opt-level = 3 |
| 26 | [profile.dev.package.rsa] |
| 27 | opt-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] |
| 32 | aes = "0.8" |
| 33 | aes-gcm = "0.10" |
| 34 | cbc = { version = "0.1", features = ["alloc"] } |
| 35 | ctr = "0.9" |
| 36 | anyhow = "1" |
| 37 | async-trait = "0.1" |
| 38 | axum = { version = "0.7", features = ["multipart"] } |
| 39 | base64 = "0.22" |
| 40 | bytes = "1" |
| 41 | celld-logic = { path = "crates/logic" } |
| 42 | celld-ltx = { path = "crates/ltx" } |
| 43 | chrono = { version = "0.4", default-features = false, features = ["std"] } |
| 44 | ed25519-dalek = { version = "2", features = ["pkcs8"] } |
| 45 | encoding_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. |
| 55 | fastwebsockets = { version = "=0.8.1", default-features = false, features = ["upgrade", "with_axum", "unstable-split"] } |
| 56 | flate2 = "1" |
| 57 | futures-util = "0.3" |
| 58 | getrandom = "0.3" |
| 59 | hex = "0.4" |
| 60 | hmac = "0.12" |
| 61 | http-body-util = "0.1" |
| 62 | hyper = { version = "1", features = ["client", "server", "http1"] } |
| 63 | hyper-util = { version = "0.1", features = ["tokio"] } |
| 64 | libc = "0.2" |
| 65 | lz4_flex = { version = "0.11", features = ["frame"] } |
| 66 | md-5 = "0.10" |
| 67 | nix = { version = "0.31", features = ["feature", "fs"] } |
| 68 | object_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. |
| 72 | parquet = { version = "59.2.0", default-features = false, features = ["zstd"] } |
| 73 | p256 = { 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. |
| 77 | p384 = { version = "0.13", features = ["ecdh", "pkcs8"] } |
| 78 | p521 = { 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. |
| 82 | pkcs8 = { 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. |
| 86 | x25519-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. |
| 89 | dsa = "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. |
| 92 | crc = "3" |
| 93 | percent-encoding = "2" |
| 94 | proptest = "1" |
| 95 | rand = "0.8" |
| 96 | regex = "1" |
| 97 | reqwest = { version = "0.12", default-features = false } |
| 98 | rsa = { version = "0.9", features = ["sha2"] } |
| 99 | rusqlite = "0.31" |
| 100 | rustls = { version = "0.23", default-features = false, features = ["ring"] } |
| 101 | serde = { version = "1", features = ["derive"] } |
| 102 | serde_json = "1" |
| 103 | sha1 = "0.10" |
| 104 | sha2 = "0.10" |
| 105 | # sqlite-vec is pre-v1, and its Rust binding is outside its compatibility |
| 106 | # policy. Pin the audited C amalgamation exactly. |
| 107 | sqlite-vec = "=0.1.9" |
| 108 | subtle = "2" |
| 109 | tempfile = "3" |
| 110 | thiserror = "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. |
| 115 | tikv-jemalloc-ctl = { version = "0.6", features = ["stats"] } |
| 116 | tikv-jemallocator = { version = "0.6", features = ["stats"] } |
| 117 | tokio = "1" |
| 118 | tokio-rustls = { version = "0.26", default-features = false, features = ["ring"] } |
| 119 | tokio-stream = "0.1" |
| 120 | tokio-util = { version = "0.7", features = ["io", "time"] } |
| 121 | tracing = "0.1" |
| 122 | tracing-appender = "0.2" |
| 123 | tracing-subscriber = { version = "0.3", features = ["env-filter"] } |
| 124 | url = "2" |
| 125 | urlpattern = "=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. |
| 129 | v8 = "152.1" |
| 130 | webpki-roots = "1" |