Cargo Features

Worker has no features set by default.

[dependencies]
worker = { version = "0.5.0", features = ["queue", "d1", "http", "axum", "timezone", "tokio-postgres"] }
queue

Enables queue of worker-macros and worker-sys

d1

Enables d1 of worker-sys

Affects worker::d1

http

Enables http of worker-macros

Affects http::body, http::request, http::response, worker::HttpRequest, worker::HttpResponse

axum

Enables axum

timezone

Enables chrono-tz ^0.8.4

Features from optional dependencies

tokio-postgres implicit feature

Enables tokio-postgres

tokio-postgres:

A native, asynchronous PostgreSQL client

Affects socket::postgres_tls