Cargo Features
[dependencies]
stripe-rust = { version = "0.12.3", default-features = false, features = ["full", "issuing", "sigma", "webhook-endpoints", "webhook-events", "events", "webhooks", "blocking", "async", "default-tls", "rustls-tls"] }
- default = blocking, default-tls, full, webhook-events
-
These default features are set whenever
stripe-rust
is added without
somewhere in the dependency tree.default-features = false - full default = billing, checkout, connect, fraud, issuing, orders, sigma, webhook-endpoints
- checkout billing connect fraud issuing full
- orders sigma full
- webhook-endpoints full webhooks?
- webhook-events default webhooks? = events, hmac, sha2
-
Deserialize events from webhooks
Affects
event::Webhook
… - events webhook-events
- webhooks = webhook-endpoints, webhook-events
-
Deprecated. Use either
webhook-events
orwebhook-endpoints
instead. - blocking default
-
Enable the blocking client
Enables rt-core of tokio ^0.2.0
- async
- default-tls default = hyper-tls
- rustls-tls = hyper-rustls
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.
- hyper-tls default-tls
-
Enables hyper-tls ^0.4
- hyper-rustls rustls-tls?
-
Enables hyper-rustls ^0.19
- hmac webhook-events
-
Enables hmac ^0.6
Webhook support
- sha2 webhook-events
-
Enables sha2 ^0.7