mirror of
https://github.com/cloudflare/workers-rs.git
synced 2025-12-08 18:01:59 +00:00
71 lines
2.1 KiB
TOML
71 lines
2.1 KiB
TOML
[package]
|
|
description = "A functioning Cloudflare Worker for testing features and ergonomics"
|
|
authors = ["Cloudflare Workers Team <workers@cloudflare.com>"]
|
|
edition = "2018"
|
|
name = "worker-sandbox"
|
|
version = "0.1.0"
|
|
license = "Apache-2.0"
|
|
|
|
[package.metadata.release]
|
|
release = false
|
|
|
|
# Change to `dwarf-debug-info = true` to preserve debug symbols in the dev
|
|
# profile. We leave this as false (the default) to avoid breaking tests,
|
|
# although tests _do_ seem to work when we update package.json to run vitest
|
|
# with `--test-timeout=0 --no-file-parallelism`.
|
|
# https://developers.cloudflare.com/workers/observability/dev-tools/cpu-usage/#taking-a-profile
|
|
# [package.metadata.wasm-pack.profile.dev.wasm-bindgen]
|
|
# dwarf-debug-info = false
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
path = "src/lib.rs"
|
|
|
|
[features]
|
|
http = [
|
|
"worker/http",
|
|
"worker/axum",
|
|
"dep:axum",
|
|
"dep:tower-service",
|
|
"dep:axum-macros",
|
|
]
|
|
|
|
[dependencies]
|
|
futures-channel.workspace = true
|
|
futures-util.workspace = true
|
|
blake2 = "0.10"
|
|
chrono = { version = "0.4", default-features = false, features = [
|
|
"wasmbind",
|
|
"clock",
|
|
] }
|
|
cfg-if = "1.0"
|
|
getrandom = { version = "0.3", features = ["wasm_js"] }
|
|
gloo-timers = { version = "0.3.0", features = ["futures"] }
|
|
hex = "0.4"
|
|
http.workspace = true
|
|
regex = "1.8.4"
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
worker.workspace = true
|
|
rand = "0.9.1"
|
|
uuid = { version = "1.17", features = ["v4", "serde", "js"] }
|
|
serde-wasm-bindgen.workspace = true
|
|
wasm-bindgen.workspace = true
|
|
md5 = "0.7.0"
|
|
tokio-stream = "0.1"
|
|
tokio = { version = "1.45", default-features = false, features = ['io-util'] }
|
|
axum = { version = "0.8", optional = true, default-features = false }
|
|
axum-macros = { version = "0.5", optional = true, default-features = false }
|
|
tower-service = { version = "0.3", optional = true }
|
|
paste = "1.0.15"
|
|
|
|
[dev-dependencies]
|
|
wasm-bindgen-test.workspace = true
|
|
futures-channel = { version = "0.3", features = ["sink"] }
|
|
futures-util = { version = "0.3", default-features = false, features = [
|
|
"sink",
|
|
] }
|
|
tokio = { version = "1.45", features = ["macros", "rt", "test-util"] }
|
|
tungstenite = "0.27"
|
|
retry = "2.1"
|