forked from sreeise/graph-rs-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
97 lines (83 loc) · 3.08 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
[package]
name = "graph-rs-sdk"
version = "2.0.1"
authors = ["sreeise"]
edition = "2021"
readme = "README.md"
license = "MIT"
repository = "https://github.com/sreeise/graph-rs-sdk"
description = "Rust SDK Client for Microsoft Graph and Microsoft Identity Platform"
homepage = "https://github.com/sreeise/graph-rs-sdk"
exclude = [
"test_files/*",
"tests/*",
"examples/*",
"test-tools/*",
"graph-codegen/*"
]
keywords = ["onedrive", "microsoft", "sdk", "api", "oauth"]
categories = ["authentication", "web-programming::http-client"]
[workspace]
members = [
"graph-oauth",
"graph-error",
"test-tools",
"graph-codegen",
"graph-http",
"graph-core"
]
[dependencies]
handlebars = "2.0.4" # TODO: Update to 4
lazy_static = "1.4.0"
reqwest = { workspace = true, default-features=false, features = ["json", "gzip", "blocking", "stream"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
url = "2"
graph-oauth = { path = "./graph-oauth", version = "2.0.1", default-features=false }
graph-http = { path = "./graph-http", version = "2.0.1", default-features=false }
graph-error = { path = "./graph-error", version = "0.3.1" }
graph-core = { path = "./graph-core", version = "2.0.1", default-features=false }
# When updating or adding new features to this or dependent crates run
# cargo tree -e features -i graph-rs-sdk
# Use this command verify that the dependency is not
# enabled by default due to another package having it as a dependency
# without default-features=false.
[features]
default = ["native-tls"]
native-tls = ["reqwest/native-tls", "graph-http/native-tls", "graph-oauth/native-tls", "graph-core/native-tls"]
rustls-tls = ["reqwest/rustls-tls", "graph-http/rustls-tls", "graph-oauth/rustls-tls", "graph-core/rustls-tls"]
brotli = ["reqwest/brotli", "graph-http/brotli", "graph-oauth/brotli", "graph-core/brotli"]
deflate = ["reqwest/deflate", "graph-http/deflate", "graph-oauth/deflate", "graph-core/deflate"]
trust-dns = ["reqwest/trust-dns", "graph-http/trust-dns", "graph-oauth/trust-dns", "graph-core/trust-dns"]
socks = ["reqwest/socks", "graph-http/socks", "graph-oauth/socks", "graph-core/socks"]
openssl = ["graph-oauth/openssl"]
interactive-auth = ["graph-oauth/interactive-auth"]
test-util = ["graph-http/test-util"]
[workspace.dependencies]
reqwest = { version = "0.12", default-features = false}
http = { version = "1", default-features = false }
[dev-dependencies]
bytes = { version = "1.4.0" }
futures = "0.3"
http = { workspace = true }
lazy_static = "1.4"
tokio = { version = "1.27.0", features = ["full"] }
warp = { version = "0.3.5" }
webbrowser = "0.8.7"
anyhow = "1.0.69"
log = "0.4"
pretty_env_logger = "0.5.0"
base64 = "0.21.0"
wiremock = "0.5.22"
graph-codegen = { path = "./graph-codegen", version = "0.0.1" }
test-tools = { path = "./test-tools", version = "0.0.1" }
[profile.release]
debug = false
[[example]]
name = "oauth_certificate"
path = "examples/certificate_auth/main.rs"
required-features = ["interactive-auth", "openssl"]
[[example]]
name = "interactive_auth"
path = "examples/interactive_auth/main.rs"
required-features = ["interactive-auth"]