-
Notifications
You must be signed in to change notification settings - Fork 28
/
Cargo.toml
141 lines (133 loc) · 5.44 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
[package]
name = "google_maps"
version = "3.7.4"
authors = ["Dylan Bowker <[email protected]>"]
edition = "2021"
categories = ["api-bindings"]
description = "An unofficial Google Maps Platform client library for the Rust programming language."
documentation = "https://docs.rs/google_maps"
keywords = ["directions", "distance", "elevation", "geocoding", "timezone"]
license = "MIT OR Apache-2.0"
publish = true
readme = "README.md"
repository = "https://github.com/leontoeides/google_maps"
rust-version = "1.70.0"
[lib]
doctest = false
[features]
default = [
# google_maps default features:
"directions",
"distance_matrix",
"elevation",
"geocoding",
"time_zone",
# `autocomplete` covers the Places API autocomplete-related services.
# All other Places API services are under `places` feature.
"autocomplete",
"roads",
"places",
# reqwest default features:
"reqwest",
"reqwest-default-tls",
"reqwest-http2",
"reqwest-brotli",
# rust_decimal default features:
"decimal-serde",
# simd-json default features:
"simd-json-beef",
"simd-json-known-key",
]
# google_maps features:
autocomplete = []
directions = ["chrono", "chrono-tz"]
distance_matrix = ["chrono", "chrono-tz"]
elevation = []
geocoding = []
places = ["chrono", "chrono-tz"]
roads = []
time_zone = ["chrono", "chrono-tz"]
# geo features:
geo = ["geo-types"]
polyline = ["dep:polyline"]
# reqwest features:
reqwest = ["dep:reqwest", "dep:backoff", "dep:futures", "dep:stream_throttle"]
enable-reqwest = ["reqwest"]
reqwest-http2 = ["reqwest/http2"]
reqwest-default-tls = ["reqwest/default-tls"]
reqwest-native-tls = ["reqwest/native-tls"]
reqwest-native-tls-vendored = ["reqwest/native-tls-vendored"]
reqwest-native-tls-alpn = ["reqwest/native-tls-alpn"]
reqwest-rustls-tls = ["reqwest/rustls-tls"]
reqwest-rustls-tls-manual-roots = ["reqwest/rustls-tls-manual-roots"]
reqwest-rustls-tls-webpki-roots = ["reqwest/rustls-tls-webpki-roots"]
reqwest-rustls-tls-native-roots = ["reqwest/rustls-tls-native-roots"]
reqwest-blocking = ["reqwest/blocking"]
reqwest-charset = ["reqwest/charset"]
reqwest-cookies = ["reqwest/cookies"]
reqwest-gzip = ["reqwest/gzip"]
reqwest-brotli = ["reqwest/brotli"]
reqwest-zstd = ["reqwest/zstd"]
reqwest-deflate = ["reqwest/deflate"]
reqwest-json = ["reqwest/json", "reqwest-middleware/json"]
reqwest-multipart = ["reqwest/multipart", "reqwest-middleware/multipart"]
reqwest-stream = ["reqwest/stream"]
reqwest-socks = ["reqwest/socks"]
reqwest-hickory-dns = ["reqwest/hickory-dns"]
# reqwest-middleware features:
reqwest-middleware = ["dep:reqwest-middleware", "dep:http", "dep:anyhow"] # "reqwest-maybe-middleware/middleware"
enable-reqwest-middleware = ["reqwest-middleware"]
reqwest-middleware-multipart = ["reqwest-middleware/multipart", "reqwest-multipart"]
reqwest-middleware-json = ["reqwest-middleware/json", "reqwest-json"]
reqwest-middleware-charset = ["reqwest-middleware/charset", "reqwest-charset"]
reqwest-middleware-http2 = ["reqwest-middleware/http2", "reqwest-http2"]
reqwest-middleware-rustls-tls = ["reqwest-middleware/rustls-tls", "reqwest-rustls-tls"]
# rust_decimal features:
decimal-serde = ["rust_decimal/serde"]
decimal-serde-float = ["rust_decimal/serde-float"]
decimal-serde-str = ["rust_decimal/serde-str"]
decimal-serde-arbitrary-precision = ["rust_decimal/serde-arbitrary-precision"]
decimal-serde-with-float = ["rust_decimal/serde-with-float"]
decimal-serde-with-str = ["rust_decimal/serde-with-str"]
decimal-serde-with-arbitrary-precision = ["rust_decimal/serde-with-arbitrary-precision"]
# simd-json features:
simd-json-arraybackend = ["simd-json/arraybackend"]
simd-json-value-no-dup-keys = ["simd-json/value-no-dup-keys"]
simd-json-128bit = ["simd-json/128bit"]
simd-json-beef = ["simd-json/beef"]
simd-json-known-key = ["simd-json/known-key"]
simd-json-swar-number-parsing = ["simd-json/swar-number-parsing"]
simd-json-approx-number-parsing = ["simd-json/approx-number-parsing"]
simd-json-serde_impl = ["simd-json/serde_impl"]
simd-json-alloc = ["simd-json/alloc"]
simd-json-hints = ["simd-json/hints"]
simd-json-runtime-detection = ["simd-json/runtime-detection"]
[dependencies]
backoff = { version = "0.4", optional = true, features = ["futures", "tokio"] }
chrono = { version = "0.4", optional = true, default-features = false, features = ["clock", "serde", "std"] }
chrono-tz = { version = "0.10", optional = true, features = ["serde"] }
futures = { version = "0.3", optional = true }
geo-types = { version = "0.7", optional = true, features = ["serde"] }
miette = "7.2"
percent-encoding = "2.3"
phf = { version = "0.11", features = ["macros"] }
polyline = { version = "0.11", optional = true }
reqwest = { version = "0.12", optional = true, default-features = false }
reqwest-middleware = { version = "0.3", optional = true }
rust_decimal = { version = "1", features = ["serde"] }
rust_decimal_macros = "1"
serde = { version = "1.0", features = ["derive"] }
simd-json = "0.14"
stream_throttle = { version = "0.5", optional = true }
thiserror = "2.0"
tokio = { version = "1", optional = true, features = ["time"] }
tracing = { version = "0.1", features = ["log"] }
# The author of `reqwest-maybe-middleware` is not currently merging PR requests
# or updating the crate. This crate has been forked and integrated into
# `google_maps`. Hopefully this is temporary.
# reqwest-maybe-middleware = "0.3"
# Dependencies for our integrated `reqwest-maybe-middleware`:
http = { version = "1", optional = true }
anyhow = { version = "1.0", optional = true }
[badges]
maintenance = { status = "passively-maintained" }