whiskers.git / backend / worker / Cargo.toml

Its own workspace, as web/ is: it builds for wasm32-unknown-unknown with worker-build and has its own lockfile, so cargo test --workspace at the repository root does not touch it.

3[workspace]
4resolver = "3"
5members = ["."]
7[package]
8name = "whiskers-backend-worker"
9version = "0.0.0"
10edition = "2024"
11publish = false
12
13[lib]
14crate-type = ["cdylib", "rlib"]
15
16[dependencies]
17log = "0.4"
18serde = { version = "1", features = ["derive"] }

preserve_order is part of the wire contract (see whiskers-ports/Cargo.toml).

20serde_json = { version = "1", features = ["preserve_order"] }
21whiskers-core = { path = "../../crates/whiskers-core" }
22whiskers-ports = { path = "../../crates/whiskers-ports" }
23whiskers-service = { path = "../../crates/whiskers-service" }

The wasm-bindgen crate and CLI must be the same version. The CLI is nix's (flake.nix, the backend shell); moving nixpkgs moves this pin with it. (web/Cargo.toml carries the same pin.)

26wasm-bindgen = "=0.2.127"
27worker = "0.8"
29[dev-dependencies]
30whiskers-conformance = { path = "../../crates/whiskers-conformance" }
31
32[profile.release]
33opt-level = "s"
34lto = true
35codegen-units = 1