-
Notifications
You must be signed in to change notification settings - Fork 88
/
Cargo.toml
108 lines (92 loc) · 2.45 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
101
102
103
104
105
106
107
108
[workspace]
members = [
"openapi",
"bench/binary_size",
]
[package]
name = "stripe-rust" # b.c. stripe and stripe-rs were already taken
version = "0.13.0-dev"
description = "API bindings for the Stripe HTTP API"
authors = [
"Anna Baldwin <[email protected]>",
"Kevin Stenerson <[email protected]>"
]
license = "MIT OR Apache-2.0"
readme = "README.md"
homepage = "https://github.com/wyyerd/stripe-rs"
repository = "https://github.com/wyyerd/stripe-rs"
documentation = "https://docs.rs/stripe-rust"
keywords = ["stripe", "v1", "api"]
categories = ["api-bindings"]
edition = "2018"
[badges]
travis-ci = {repository = "wyyerd/stripe-rs"}
[lib]
name = "stripe"
[features]
default = ["full", "webhook-events", "default-tls"]
full = [
# "core",
# "payment-methods",
"checkout",
"billing",
"connect",
"fraud",
"issuing",
"orders",
"sigma",
"webhook-endpoints",
]
# Stripe feature groups
#core = [] # N.B. always enabled for now
#payment-methods = [] # N.B. always enabled for now
checkout = []
billing = []
connect = []
fraud = []
issuing = []
orders = []
sigma = []
webhook-endpoints = []
# Deserialize events from webhooks
webhook-events = ["events", "hex", "hmac", "sha2"]
events = []
# Enable the blocking client
blocking = ["tokio/rt"]
default-tls = ["hyper-tls"]
rustls-tls = ["hyper-rustls"]
[dependencies]
chrono = { version = "0.4", features = ["serde"] }
futures-util = { version = "0.3", default-features = false }
http = "0.2"
hyper = { version = "0.14", default-features = false, features = ["http1", "http2", "client", "tcp"] }
hyper-tls = { version = "0.5", optional = true }
hyper-rustls = { version = "0.22.1", optional = true }
serde = ">=1.0.79" # N.B. 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"
tokio = "1"
# Webhook support
hex = { version = "0.4", optional = true }
hmac = { version = "0.12", optional = true }
sha2 = { version = "0.10", optional = true }
#[[example]]
#name = "async_create_charge"
#required-features = ["async"]
[[example]]
name = "create_charge"
required-features = ["blocking"]
[[example]]
name = "create_customer"
required-features = ["blocking"]
[[example]]
name = "create_customer_with_source"
required-features = ["blocking"]
[[example]]
name = "list_customers"
required-features = ["blocking"]
[dev-dependencies]
lazy_static = "1.4.0"
tokio = { version = "1", features = ["full"] }