[package]
name = "postrust-worker"
version = "1.0.1"
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
authors.workspace = true
description = "Cloudflare Workers adapter for Postrust: the PostgREST-dialect REST API in a Worker, over Hyperdrive"
homepage.workspace = true
readme = "README.md"
keywords = ["cloudflare", "workers", "hyperdrive", "postgres", "rest"]
[lib]
crate-type = ["cdylib"]
[package.metadata.docs.rs]
targets = ["wasm32-unknown-unknown"]
[package.metadata.wasm-pack.profile.release]
wasm-opt = ["-Oz"]
[features]
compat-key-order = ["serde_json/preserve_order", "postrust-core/compat-key-order"]
[dependencies]
http.workspace = true
postrust-core.workspace = true
[target.'cfg(target_arch = "wasm32")'.dependencies]
worker = { version = "=0.8.6", features = ["http", "tokio-postgres"] }
wasm-bindgen-futures = "0.4"
futures.workspace = true
console_error_panic_hook = "0.1"
js-sys = "0.3"
serde.workspace = true
serde_json.workspace = true
bytes.workspace = true
http-body = "1"
http-body-util.workspace = true
postrust-core = { workspace = true, features = ["pg-socket"] }
postrust-engine.workspace = true
postrust-auth.workspace = true