Crates.io | jwiesler-async-stripe |
lib.rs | jwiesler-async-stripe |
version | 0.34.3 |
source | src |
created_at | 2024-04-12 12:24:24.359705 |
updated_at | 2024-04-12 12:24:24.359705 |
description | API bindings for the Stripe HTTP API |
homepage | https://github.com/arlyon/async-stripe |
repository | https://github.com/arlyon/async-stripe |
max_upload_size | |
id | 1206276 |
size | 9,552,081 |
Convenient rust bindings and types for the Stripe HTTP API aiming to support the entire API surface. Not the case? Please open an issue. We update our definitions every week to ensure that we are up to date. Want to see a changelog of the Stripe API? Look no further.
See the Rust API docs, the examples, or payments.rs.
async-stripe
is compatible with the async-std
and tokio
runtimes and the native-tls
and rustls
backends. When adding the dependency, you must select a runtime feature.
[dependencies]
async-stripe = { version = "0.31", features = ["runtime-tokio-hyper"] }
runtime-tokio-hyper
runtime-tokio-hyper-rustls
runtime-blocking
runtime-blocking-rustls
runtime-async-std-surf
Additionally, since this is a large library, it is possible to conditionally enable features as required to reduce compile times and final binary size. Refer to the Stripe API docs to determine which APIs are included as part of each feature flag.
# Example: Core-only (enough to create a `Charge` or `Card` or `Customer`)
async-stripe = { version = "*", default-features = false, features = ["runtime-async-std-surf"] }
# Example: Support for "Subscriptions" and "Invoices"
async-stripe = { version = "*", default-features = false, features = ["runtime-async-std-surf", "billing"] }
This library always tracks the latest version of the stripe API.
If you want to find a version that matches the API you are on, you can easily navigate back through the git blame in that file. Set the corresponding crate version depending on which version of the Stripe API you are pinned to. If you don't see the specific version you are on, prefer the next available version.
We currently have 1.68.0
pinned in CI, so any version of rustc newer than that should work.
If this is not the case, please open an issue. As a policy, we permit MSRV increases in non-breaking releases.
If you have a compelling usecase for bumping it, we are usually open to do so, as long as
the rust version is not too new (generally 3 releases).
See CONTRIBUTING.md for information on contributing to async-stripe.
This project started as a fork of stripe-rs. We would not be here without them! :)
Licensed under either of
at your option.