Cargo Features
[dependencies]
async-stripe = { version = "1.0.0-rc.5", default-features = false, features = ["default-tls", "native-tls", "rustls-tls-webpki-roots", "rustls-tls-native", "rustls-aws-lc-rs", "rustls-ring", "blocking", "async-std-surf", "uuid", "redact-generated-debug"] }
- default = default-tls
-
The
default-tlsfeature is set by default wheneverasync-stripeis added withoutsomewhere in the dependency tree.default-features = false - default-tls default native-tls?
-
TLS Features
Enables http-body-util, hyper, hyper-tls, and hyper-util
- native-tls = default-tls
-
Use the default TLS chain on your platform (e.g. SChannel on Windows, Secure Transport on macOS, OpenSSL on Linux)
- rustls-tls-webpki-roots
-
Use Rustls with the webpki-roots crate, which provides a set of root certificates bundled with your binary.
Enables hyper-util, http-body-util and hyper, webpki-roots of hyper-rustls
- rustls-tls-native
-
Use Rustls with the rustls-native-certs crate, which provides access to the native certificate store on the platform. This is a good choice if you don't want a runtime dep on OpenSSL but still want to use the native certificate store.
Enables hyper-util, http-body-util and hyper, rustls-native-certs of hyper-rustls
- rustls-aws-lc-rs
-
Use Rustls with the AWS-LC-Rust crate, which aims to be a drop-in high performance replacement for ring.
Enables aws-lc-rs of hyper-rustls
- rustls-ring
-
Use Rustls with the Ring crate.
Enables ring of hyper-rustls
- blocking
-
Provides a synchronous client for use in non-async environments.
Enables http-body-util, hyper, and hyper-util
Affects
hyper::blocking… - async-std-surf = async-std, http-types, surf
-
Uses the
surfclient andasync-stdruntime instead of hyper.Affects
async-stripe::async_std… - uuid
-
Enables support for using the
uuidcrate with Stripe IDs.Enables uuid of async-stripe-client-core
- redact-generated-debug
-
Redacts potentially sensitive fields from
Debugimplementations.Enables redact-generated-debug of async-stripe-client-core and async-stripe-shared
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.
- async-std async-std-surf?
-
Enables async-std
async-std-surf deps
- surf async-std-surf?
- http-types async-std-surf?