Cargo Features

[dependencies]
product-os-request = { version = "0.0.39", default-features = false, features = ["std", "method", "response", "request", "custom", "method_std", "response_std", "request_std", "json", "form", "hyper", "url", "rustls"] }
default = std

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

Enables std of no-std-compat

std default = method_std, request_std, reqwest, response_std

Enables std of no-std-compat, brotli, cookies, gzip, rustls, rustls-tls and serde_json of reqwest ^0.11.22 and derive of serde

Support for serialize/deserialize objects

Affects product-os-request::ProductOSRequestClient

method custom? request? = product-os-http

Enables derive of serde

Affects product-os-request::Method

response custom? request? = product-os-http, product-os-http-body, tracing

Affects product-os-request::ProductOSResponse

request custom? = bytes, futures-core, method, product-os-http, product-os-http-body, response, tracing

Enables derive of serde

Affects product-os-request::Protocol, product-os-request::Proxy, product-os-request::RedirectPolicy, product-os-request::BodyType, product-os-request::ProductOSRequestError, product-os-request::ProductOSRequest, product-os-request::ProductOSRequester, product-os-request::ProductOSClient, product-os-request::ProductOSRequestClient

custom = method, request, reqwest, response

Enables std of no-std-compat, brotli, cookies, gzip, rustls, rustls-tls and serde_json of reqwest ^0.11.22, derive of serde

Affects product-os-request::ProductOSRequestClient

method_std request_std? std

Enables std of product-os-http, derive of serde

Affects product-os-request::Method

response_std request_std? std = tracing

Enables std of product-os-http and product-os-http-body

Affects product-os-request::ProductOSResponse

request_std std = bytes, futures-core, method_std, response_std, tracing

Enables derive of serde, std of product-os-http and product-os-http-body

Affects product-os-request::Protocol, product-os-request::Proxy, product-os-request::RedirectPolicy, product-os-request::BodyType, product-os-request::ProductOSRequestError, product-os-request::ProductOSRequest, product-os-request::ProductOSRequester, product-os-request::ProductOSClient, product-os-request::ProductOSRequestClient

json = serde_json

Affects product-os-request::ProductOSClient.set_body_json, product-os-request::ProductOSClient.json

form = serde_urlencoded

Affects product-os-request::ProductOSClient.set_body_form

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.

hyper implicit feature

Enables hyper

hyper:

A protective and efficient HTTP library for all

url implicit feature

Enables url

url:

URL library for Rust, based on the WHATWG URL Standard

reqwest custom? std

Enables reqwest ^0.11.22

rustls implicit feature

Enables rustls ^0.21.6

rustls:

Rustls is a modern TLS library written in Rust

tracing request? request_std? response? response_std?
serde custom? method? method_std? request? request_std? std
serde_json json?

Enables serde_json

Support for JSON structures

serde_urlencoded form?

Enables serde_urlencoded

Support for URL encoded structures

futures-core request? request_std?
bytes request? request_std?
product-os-http method? method_std? request? request_std? response? response_std?
product-os-http-body request? request_std? response? response_std?