Cargo Features

[dependencies]
rust-wistia = { version = "0.8.0", default-features = false, features = ["upload-url", "upload-file", "rust-tls", "logging", "serde-std", "native-tls", "http1", "http2", "rust-tls-logging", "serde-alloc"] }

FEATURES

default = logging, rust-tls, serde-std, upload-url

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

upload-url default upload-file? = serde_urlencoded

Enable upload of URL links to media files, via the UrlUploader

Affects upload::link

upload-file = hyper-multipart-rfc7578, upload-url

Enable multi-part form upload of media files, via the FileUploader

Affects upload::file, upload::file_stream

rust-tls default = hyper-rustls, rustls

The rust-tls feature here is ideal for Linux (AWS Lambda) environments. NOTE: Disabling both rust-tls and native-tls features is not supported.

Enables http1 and http2 of hyper-rustls ^0.24.0

Affects https::get_https_client, https::get_https_client

logging default = log

This feature enables useful log output from this library, such as request URL and logging of elapsed durations; it is enabled by default.

serde-std default

Use the Rust standard library with serde_json (default)

Enables std of serde_json

native-tls = http1, hyper-tls

Use the native TLS implementation using OpenSSL instead

http1 native-tls?

Enable HTTP/1 or HTTP/2 support via hyper. These features generally shouldn't be needed to be enabled individually.

Enables http1 of hyper ^0.14

http2

Enables http2 of hyper ^0.14

Affects https::get_https_client

rust-tls-logging

This can be enabled to receive more verbose log output from hyper-rustls

Enables logging of hyper-rustls ^0.24.0

serde-alloc

Available on Rust 1.36+. See https://github.com/serde-rs/json#no-std-support

Enables alloc of serde_json

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.

log logging

Enables log

Optional

serde_urlencoded upload-url
hyper-multipart-rfc7578 upload-file?

Enables hyper-multipart-rfc7578 ^0.5

hyper-rustls rust-tls rust-tls-logging?

Enables hyper-rustls ^0.24.0

rustls rust-tls

Enables rustls ^0.21.0

hyper-tls native-tls?

Enables hyper-tls ^0.5.0