-
Notifications
You must be signed in to change notification settings - Fork 18
/
Cargo.toml
144 lines (125 loc) · 4.02 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[package]
name = "dropbox-sdk"
version = "0.19.0-beta2"
authors = ["Bill Fraser <[email protected]>"]
edition = "2021"
description = "Rust bindings to the Dropbox API, generated by Stone from the official spec."
categories = ["api-bindings"]
keywords = ["dropbox", "sdk", "cloud", "storage"]
repository = "https://github.com/dropbox/dropbox-sdk-rust"
license = "Apache-2.0"
readme = "README.md"
[package.metadata]
# Keep this at least 1 year old.
# (or not... 1.75 is required for "-> impl Trait" sadly)
msrv = "1.75.0" # Dec 28, 2023
[dependencies]
async-lock = "3.3.0"
atty = "0.2.14"
base64 = "0.22"
bytes = "1.6.0"
log = "0.4"
ring = "0.17"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
thiserror = "2.0"
url = "2.1"
[dependencies.futures]
version = "0.3.30"
default-features = false
features = ["std"]
[dependencies.reqwest]
version = "0.12.2"
optional = true
default-features = false
features = ["http2", "rustls-tls", "stream"]
[dependencies.ureq]
version = "2.5.0"
optional = true
default-features = false
features = ["tls"]
[dev-dependencies]
env_logger = "0.11"
chrono = "0.4"
parallel_reader = "0.1"
threadpool = "1.8"
[dev-dependencies.tokio]
version = "1.37.0"
features = ["rt-multi-thread", "macros", "io-std"]
[dev-dependencies.tokio-util]
version = "0.7.10"
default-features = false
features = ["compat"]
[[example]]
name = "demo"
required-features = ["dbx_files", "default_client"]
[[example]]
name = "large-file-upload"
required-features = ["dbx_files", "default_client"]
[[example]]
name = "demo-async"
required-features = ["dbx_files", "default_async_client"]
[features]
# dbx_* features each correspond to one Stone spec file.
# The lists of dependencies must be kept in sync with the 'import' statements in them.
dbx_account = ["dbx_common"]
dbx_async = []
dbx_auth = ["dbx_common"]
dbx_check = ["dbx_common"]
dbx_common = []
dbx_contacts = ["dbx_common"]
dbx_file_properties = []
dbx_file_requests = ["dbx_common", "dbx_files"]
dbx_files = ["dbx_async", "dbx_auth", "dbx_common", "dbx_file_properties", "dbx_users_common"]
dbx_openid = ["dbx_common"]
dbx_paper = ["dbx_common", "dbx_sharing"]
dbx_secondary_emails = ["dbx_common"]
dbx_seen_state = []
dbx_sharing = ["dbx_async", "dbx_common", "dbx_files", "dbx_seen_state", "dbx_team_common", "dbx_users", "dbx_users_common"]
dbx_team = ["dbx_account", "dbx_async", "dbx_common", "dbx_file_properties", "dbx_files", "dbx_secondary_emails", "dbx_team_common", "dbx_team_policies", "dbx_users", "dbx_users_common"]
dbx_team_common = ["dbx_common"]
dbx_team_log = ["dbx_async", "dbx_common", "dbx_file_requests", "dbx_files", "dbx_sharing", "dbx_team", "dbx_team_common", "dbx_team_policies", "dbx_users_common"]
dbx_team_policies = []
dbx_users = ["dbx_common", "dbx_team_common", "dbx_team_policies", "dbx_users_common"]
dbx_users_common = ["dbx_common"]
default_async_client = ["async_routes", "dep:reqwest"]
default_client = ["sync_routes", "sync_routes_in_root", "dep:ureq"]
# Enable unstable ("preview") API routes.
unstable = []
# Enable sync routes under `dropbox_sdk::routes::{namespace}`
sync_routes = []
# Enable async routes under `dropbox_sdk::async_routes::{namespace}`
async_routes = []
# Re-export the sync routes as `dropbox_sdk::{namsepace}` directly (matches pre-v0.19 structure).
# If disabled, export the async routes there instead.
sync_routes_in_root = ["sync_routes"]
# Include all namespaces by default.
# Enable sync default client, sync routes, and make the sync routes default, to match pre-v0.19.
default = [
"dbx_account",
"dbx_async",
"dbx_auth",
"dbx_check",
"dbx_common",
"dbx_contacts",
"dbx_file_properties",
"dbx_file_requests",
"dbx_files",
"dbx_openid",
"dbx_paper",
"dbx_secondary_emails",
"dbx_seen_state",
"dbx_sharing",
"dbx_team",
"dbx_team_common",
"dbx_team_log",
"dbx_team_policies",
"dbx_users",
"dbx_users_common",
"default_client",
"sync_routes",
"sync_routes_in_root",
]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]