Cargo Features

[dependencies]
google_maps = { version = "3.7.3", default-features = false, features = ["autocomplete", "directions", "distance_matrix", "elevation", "geocoding", "places", "roads", "time_zone", "geo", "polyline", "reqwest", "enable-reqwest", "reqwest-http2", "reqwest-default-tls", "reqwest-native-tls", "reqwest-native-tls-vendored", "reqwest-native-tls-alpn", "reqwest-rustls-tls", "reqwest-rustls-tls-manual-roots", "reqwest-rustls-tls-webpki-roots", "reqwest-rustls-tls-native-roots", "reqwest-blocking", "reqwest-charset", "reqwest-cookies", "reqwest-gzip", "reqwest-brotli", "reqwest-zstd", "reqwest-deflate", "reqwest-json", "reqwest-multipart", "reqwest-stream", "reqwest-socks", "reqwest-hickory-dns", "reqwest-middleware", "enable-reqwest-middleware", "reqwest-middleware-multipart", "reqwest-middleware-json", "reqwest-middleware-charset", "reqwest-middleware-http2", "reqwest-middleware-rustls-tls", "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", "simd-json-arraybackend", "simd-json-value-no-dup-keys", "simd-json-128bit", "simd-json-beef", "simd-json-known-key", "simd-json-swar-number-parsing", "simd-json-approx-number-parsing", "simd-json-serde_impl", "simd-json-alloc", "simd-json-hints", "simd-json-runtime-detection", "tokio"] }
default = autocomplete, decimal-serde, directions, distance_matrix, elevation, geocoding, places, reqwest, reqwest-brotli, reqwest-default-tls, reqwest-http2, roads, simd-json-beef, simd-json-known-key, time_zone

These default features are set whenever google_maps is added without default-features = false somewhere in the dependency tree.

autocomplete default

google_maps features:

Affects places::place_autocomplete, places::query_autocomplete

directions default = chrono, chrono-tz

Affects google_maps::directions, serde::duration_to_seconds, serde::seconds_to_duration

distance_matrix default = chrono, chrono-tz

Affects google_maps::distance_matrix, google_maps::directions, serde::duration_to_seconds, serde::seconds_to_duration

elevation default

Affects google_maps::elevation

geocoding default

Affects google_maps::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_maps::roads

time_zone default = chrono, chrono-tz

Affects google_maps::time_zone

geo = geo-types

geo features:

Affects location::Location, waypoint::Waypoint, locations::Locations, locations::Locations

polyline

Enables polyline

reqwest default enable-reqwest? reqwest-blocking? reqwest-brotli reqwest-charset? reqwest-cookies? reqwest-default-tls reqwest-deflate? reqwest-gzip? reqwest-hickory-dns? reqwest-http2 reqwest-json? reqwest-multipart? reqwest-native-tls? reqwest-native-tls-alpn? reqwest-native-tls-vendored? reqwest-rustls-tls? reqwest-rustls-tls-manual-roots? reqwest-rustls-tls-native-roots? reqwest-rustls-tls-webpki-roots? reqwest-socks? reqwest-stream? reqwest-zstd?

reqwest features:

Enables backoff, futures, reqwest, and stream_throttle

Affects client::GoogleMapsClient.rate_limit, client::GoogleMapsClient.reqwest_client, client::GoogleMapsClient.reqwest_client

enable-reqwest = reqwest
reqwest-http2 default reqwest-middleware-http2?

Enables http2 of reqwest

reqwest-default-tls default

Enables default-tls of reqwest

reqwest:

Note: this doesn't enable the 'native-tls' feature, which adds specific functionality for it.

reqwest-native-tls

Enables native-tls of reqwest

reqwest:

Enables native-tls specific functionality not available by default.

reqwest-native-tls-vendored

Enables native-tls-vendored of reqwest

reqwest-native-tls-alpn

Enables native-tls-alpn of reqwest

reqwest-rustls-tls reqwest-middleware-rustls-tls?

Enables rustls-tls of reqwest

reqwest-rustls-tls-manual-roots

Enables rustls-tls-manual-roots of reqwest

reqwest-rustls-tls-webpki-roots

Enables rustls-tls-webpki-roots of reqwest

reqwest-rustls-tls-native-roots

Enables rustls-tls-native-roots of reqwest

reqwest-blocking

Enables blocking of reqwest

reqwest-charset reqwest-middleware-charset?

Enables charset of reqwest

reqwest-cookies

Enables cookies of reqwest

reqwest-gzip

Enables gzip of reqwest

reqwest-brotli default

Enables brotli of reqwest

reqwest-zstd

Enables zstd of reqwest

reqwest-deflate

Enables deflate of reqwest

reqwest-json reqwest-middleware-json?

Enables json of reqwest and reqwest-middleware ^0.3

reqwest-multipart reqwest-middleware-multipart?

Enables multipart of reqwest and reqwest-middleware ^0.3

reqwest-stream

Enables stream of reqwest

reqwest-socks

Enables socks of reqwest

reqwest-hickory-dns

Enables hickory-dns of reqwest

reqwest-middleware enable-reqwest-middleware? reqwest-json? reqwest-middleware-charset? reqwest-middleware-http2? reqwest-middleware-json? reqwest-middleware-multipart? reqwest-middleware-rustls-tls? reqwest-multipart?

reqwest-middleware features:
"reqwest-maybe-middleware/middleware"

Enables anyhow, http, and reqwest-middleware ^0.3

http:

Dependencies for our integrated reqwest-maybe-middleware:

Affects google_maps::reqwest_maybe_middleware, client::GoogleMapsClient.reqwest_client

enable-reqwest-middleware = reqwest-middleware
reqwest-middleware-multipart = reqwest-multipart

Enables multipart of reqwest-middleware ^0.3

reqwest-middleware-json = reqwest-json

Enables json of reqwest-middleware ^0.3

reqwest-middleware-charset = reqwest-charset

Enables charset of reqwest-middleware ^0.3

reqwest-middleware-http2 = reqwest-http2

Enables http2 of reqwest-middleware ^0.3

reqwest-middleware-rustls-tls = reqwest-rustls-tls

Enables rustls-tls of reqwest-middleware ^0.3

decimal-serde default

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

simd-json-arraybackend

simd-json features:

Enables arraybackend of simd-json

simd-json-value-no-dup-keys

Enables value-no-dup-keys of simd-json

simd-json:

Forces the owned::Value and borrowed::Value to deduplicate duplicated keys by letting consecutive keys overwrite previous ones. This comes at a performance cost. By default duplicate keys will not be overwritten and feeding json objects with duplicated keys to either of the Values will result in undefined behavior.

simd-json-128bit

Enables 128bit of simd-json

simd-json:

Support for 128 bit integers

simd-json-beef default

Enables beef of simd-json

simd-json-known-key default

Enables known-key of simd-json

simd-json:

used for enabeling known keys in favour of a slower hasher that is not protected against hash collision attacks

simd-json-swar-number-parsing

Enables swar-number-parsing of simd-json

simd-json:

use 8 number at once parsing strategy

simd-json-approx-number-parsing

Enables approx-number-parsing of simd-json

simd-json:

Uses an approximate float parsing algorithm that is faster but does not guarantee round trips for the edges

simd-json-serde_impl

Enables serde_impl of simd-json

simd-json:

serde compatibility

simd-json-alloc

Enables alloc of simd-json

simd-json:

for testing allocations

simd-json-hints

Enables hints of simd-json

simd-json:

use branch hints - requires nightly :(
requires nightly

simd-json-runtime-detection

Enables runtime-detection of simd-json

simd-json:

use runtime detection of the CPU features where possible instead of enforcing an instruction set

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.

chrono directions distance_matrix places time_zone
chrono-tz directions distance_matrix places time_zone
geo-types geo?
tokio implicit feature

Enables tokio

tokio:

An event-driven, non-blocking I/O platform for writing asynchronous I/O backed applications