Cargo Features

[dependencies]
whatsapp-business-rs = { version = "0.4.2", default-features = false, features = ["incoming_message_ext", "batch", "server", "media_ext", "byos", "test-mode"] }
default = batch, byos, media_ext, server

These default features are set whenever whatsapp-business-rs is added without default-features = false somewhere in the dependency tree.

incoming_message_ext
batch default = serde-metaform

Affects app::ConfigureWebhookResponseReference, catalog::CreateProductResponseReference, whatsapp-business-rs::batch, whatsapp-business-rs::UpdateResponseReference

server default byos = axum, hex, hmac, sha2, subtle

Affects whatsapp-business-rs::server

media_ext default = infer
byos default = http, server

Affects whatsapp-business-rs::webhook_service

test-mode

Used to allow integration tests to override the API base URL.
This is intentionally disabled in normal builds to avoid any runtime cost

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

serde-metaform batch

Enables serde-metaform

--- Optional dependencies for the batch feature --

axum server

Enables axum

--- Optional dependencies for the server feature ---

hmac server
sha2 server
hex server
subtle server
infer media_ext

Enables infer

--- Optional dependencies for the media_ext feature ---

http byos