Cargo Features
[dependencies]
google_maps2 = { version = "3.5.3", default-features = false, features = ["autocomplete", "directions", "distance_matrix", "elevation", "geocoding", "places", "roads", "time_zone", "geo", "enable-reqwest", "enable-reqwest-middleware", "brotli", "deflate", "gzip", "zstd", "native-tls", "rustls", "decimal-serde", "decimal-serde-float", "decimal-serde-str", "decimal-serde-arbitrary-precision", "decimal-serde-with-float", "decimal-serde-with-str", "decimal-serde-with-arbitrary-precision", "tokio"] }
- default = autocomplete, directions, distance_matrix, elevation, enable-reqwest, geocoding, places, roads, time_zone
-
These default features are set whenever
google_maps2
is added without
somewhere in the dependency tree.default-features = false Enables rust_decimal, default-tls and gzip of reqwest
- autocomplete default
-
Google Maps Client API features:
Affects
places::place_autocomplete
,places::query_autocomplete
… - directions default = chrono, chrono-tz
-
Affects
google_maps2::directions
,serde::duration_to_seconds
,serde::seconds_to_duration
… - distance_matrix default = chrono, chrono-tz
-
Affects
google_maps2::distance_matrix
,google_maps2::directions
,serde::duration_to_seconds
,serde::seconds_to_duration
… - elevation default
-
Affects
google_maps2::elevation
… - geocoding default
-
Affects
google_maps2::geocoding
… - places default = chrono, chrono-tz
-
Affects
places::business_status
,places::error
,places::place
,places::place_details
,places::place_editorial_summary
,places::place_opening_hours
,places::place_opening_hours_period
,places::place_opening_hours_period_detail
,places::place_photo
,places::place_review
,places::place_search
,places::place_special_day
,places::rank_by
,places::secondary_hours_type
,places::status
… - roads default
-
Affects
google_maps2::roads
… - time_zone default = chrono, chrono-tz
-
Affects
google_maps2::time_zone
… - geo = geo-types
-
Geo ecosystem features:
Affects
location::Location
,waypoint::Waypoint
,locations::Locations
,locations::Locations
… - enable-reqwest default = backoff, futures, reqwest, stream_throttle
-
Reqwest features:
Affects
client::GoogleMapsClient.rate_limit
,client::GoogleMapsClient.reqwest_client
,client::GoogleMapsClient.reqwest_client
… - enable-reqwest-middleware = anyhow, http, reqwest-middleware
-
"reqwest-maybe-middleware/middleware"
Affects
google_maps2::reqwest_maybe_middleware
,client::GoogleMapsClient.reqwest_client
… - brotli
- deflate
- gzip
- zstd
- native-tls
-
Enables default-tls of reqwest
reqwest:
Note: this doesn't enable the 'native-tls' feature, which adds specific functionality for it.
- rustls
-
Enables rustls-tls of reqwest
- decimal-serde
-
Rust Decimal features:
Enables rust_decimal
- decimal-serde-float
-
Enables serde-float of rust_decimal
- decimal-serde-str
-
Enables serde-str of rust_decimal
- decimal-serde-arbitrary-precision
-
Enables serde-arbitrary-precision of rust_decimal
- decimal-serde-with-float
-
Enables serde-with-float of rust_decimal
- decimal-serde-with-str
-
Enables serde-with-str of rust_decimal
- decimal-serde-with-arbitrary-precision
-
Enables serde-with-arbitrary-precision of rust_decimal
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- backoff enable-reqwest
- chrono directions distance_matrix places time_zone
- chrono-tz directions distance_matrix places time_zone
-
Enables chrono-tz ^0.9
- futures enable-reqwest
- geo-types geo?
- reqwest default brotli? deflate? enable-reqwest gzip? native-tls? rustls? zstd?
- reqwest-middleware enable-reqwest-middleware?
- stream_throttle enable-reqwest
- tokio implicit feature
-
Enables tokio
tokio:
An event-driven, non-blocking I/O platform for writing asynchronous I/O backed applications
- http enable-reqwest-middleware?
-
Enables http
Dependencies for our integrated
reqwest-maybe-middleware
: - anyhow enable-reqwest-middleware?