Cargo Features

[dependencies]
smartsheet-rs = { version = "0.6.2", default-features = false, features = ["rust-tls", "logging", "serde-std", "native-tls", "http1", "http2", "rust-tls-logging", "serde-alloc"] }

harness = false

FEATURES

default = logging, rust-tls, serde-std

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

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.23.0

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

Affects utils::resp_into_struct

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.16

http2

Enables http2 of hyper ^0.14.16

rust-tls-logging

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

Enables logging of hyper-rustls ^0.23.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

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

Enables hyper-rustls ^0.23.0

rustls rust-tls

Enables rustls ^0.20.1

hyper-tls native-tls?

Enables hyper-tls ^0.5.0