Cargo Features

fregate has no features set by default.

[dependencies]
fregate = { version = "0.19.0-3", features = ["tls", "use_native_tls", "use_native_tls_vendored", "use_rustls", "use_rustls_tls12", "ahash", "tokio-metrics"] }
tls use_native_tls? use_rustls? use_rustls_tls12?

Affects application::AppConfig.tls, common::extract_remote_address

use_native_tls use_native_tls_vendored? = async-stream, futures-util, tls, tokio-native-tls, tokio-stream

Enables fs and net of tokio and native-tls of reqwest 0.11.*

reqwest:

Enables native-tls specific functionality not available by default.

use_native_tls_vendored = use_native_tls

Enables native-tls-vendored of reqwest 0.11.* and vendored of native-tls

native-tls deps

use_rustls use_rustls_tls12? = async-stream, futures-util, rustls-pemfile, tls, tokio-rustls, tokio-stream

Enables fs and net of tokio

use_rustls_tls12 = tls, use_rustls

Enables tls12 of tokio-rustls 0.24.*

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.

ahash implicit feature

Enables ahash

ahash:

A non-cryptographic hash function using AES-NI for high performance

reqwest use_native_tls? use_native_tls_vendored?

Enables reqwest 0.11.*

tokio-metrics implicit feature

Enables tokio-metrics 0.2.*

tokio-metrics:

Runtime and task level metrics for Tokio applications

Affects metrics::tokio_metrics

async-stream use_native_tls? use_rustls?

Enables async-stream

common deps for tls

futures-util use_native_tls? use_rustls?
tokio-stream use_native_tls? use_rustls?
native-tls use_native_tls_vendored?
tokio-native-tls use_native_tls?
rustls-pemfile use_rustls?

Enables rustls-pemfile 1.0.*

rustls deps

tokio-rustls use_rustls? use_rustls_tls12?

Enables tokio-rustls 0.24.*