forked from arlyon/async-stripe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
100 lines (88 loc) · 2.31 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
[workspace]
members = [
".",
"openapi",
"bench/binary_size",
"examples/async-std",
"examples/blocking",
"examples/tokio",
]
[package]
name = "async-stripe"
version = "0.13.0-rc3"
description = "API bindings for the Stripe HTTP API"
authors = [
"Anna Baldwin <[email protected]>",
"Kevin Stenerson <[email protected]>",
"Alexander Lyon <[email protected]>",
]
license = "MIT OR Apache-2.0"
readme = "README.md"
homepage = "https://github.com/arlyon/stripe-rs"
repository = "https://github.com/arlyon/stripe-rs"
documentation = "https://docs.rs/async-stripe"
keywords = ["stripe", "v1", "api"]
categories = ["api-bindings"]
edition = "2018"
[package.metadata.docs.rs]
features = ["runtime-async-std-surf"]
[lib]
name = "stripe"
[features]
default = ["full", "webhook-events"]
full = [
"checkout",
"billing",
"connect",
"fraud",
"issuing",
"orders",
"sigma",
"webhook-endpoints",
]
# stripe feature groups
checkout = []
billing = []
connect = []
fraud = []
issuing = []
orders = []
sigma = []
webhook-endpoints = []
# deserialize events from webhooks
webhook-events = ["events", "hmac", "sha2", "chrono"]
events = []
# runtimes
async = []
blocking = []
runtime-tokio-hyper = ["tokio", "hyper", "hyper-tls", "async"]
runtime-tokio-hyper-rustls = ["tokio", "hyper", "hyper-rustls", "async"]
runtime-blocking = ["tokio", "tokio/rt", "hyper", "hyper-tls", "blocking"]
runtime-blocking-rustls = [
"tokio",
"tokio/rt",
"hyper",
"hyper-rustls",
"blocking",
]
runtime-async-std-surf = ["async-std", "surf", "async"]
[dependencies]
async-std = { version = "1.9", optional = true }
chrono = { version = "0.4", features = ["serde"], optional = true }
hyper = { version = "0.14", default-features = false, features = ["http1", "http2", "client", "tcp"], optional = true }
hyper-tls = { version = "0.5", optional = true }
hyper-rustls = { version = "0.22", optional = true }
serde = ">=1.0.79" # we use `serde(other)` which was introduced in 1.0.79
serde_derive = ">=1.0.79"
serde_json = "1.0"
serde_qs = "0.8"
smol_str = "0.1"
surf = { version = "2.1", optional = true }
tokio = { version = "1.2", optional = true }
# webhook support
hmac = { version = "0.10", optional = true }
sha2 = { version = "0.9", optional = true }
thiserror = "1.0.24"
[dev-dependencies]
anyhow = "1.0.38"
lazy_static = "1.4"