Cargo Features

[dependencies]
pulsar = { version = "6.3.0", default-features = false, features = ["compression", "tokio-runtime", "tokio-rustls-runtime", "async-std-runtime", "async-std-rustls-runtime", "auth-oauth2", "telemetry", "protobuf-src"] }
default = async-std-runtime, auth-oauth2, compression, tokio-runtime

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

compression default = flate2, lz4, snap, zstd
tokio-runtime default = native-tls, tokio, tokio-native-tls, tokio-util

Affects executor::TokioExecutor

tokio-rustls-runtime = rustls, tokio, tokio-rustls, tokio-util, webpki-roots

Affects executor::TokioExecutor

async-std-runtime default = async-native-tls, async-std, asynchronous-codec, native-tls

Affects executor::AsyncStdExecutor

async-std-rustls-runtime = async-rustls, async-std, asynchronous-codec, rustls, webpki-roots

Affects executor::AsyncStdExecutor

auth-oauth2 default = data-url, oauth2, openidconnect, serde, serde_json

Affects authentication::oauth2

telemetry = tracing
protobuf-src build

Enables protobuf-src ^1.1.0

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.

native-tls async-std-runtime tokio-runtime
rustls async-std-rustls-runtime? tokio-rustls-runtime?

Enables rustls ^0.21.6

webpki-roots async-std-rustls-runtime? tokio-rustls-runtime?

Enables webpki-roots ^0.25.1

tokio tokio-runtime tokio-rustls-runtime?
tokio-util tokio-runtime tokio-rustls-runtime?
tokio-rustls tokio-rustls-runtime?

Enables tokio-rustls ^0.24.1

tokio-native-tls tokio-runtime
async-std async-std-runtime async-std-rustls-runtime?
asynchronous-codec async-std-runtime async-std-rustls-runtime?

Enables asynchronous-codec ^0.6.2

async-rustls async-std-rustls-runtime?
async-native-tls async-std-runtime
lz4 compression

Affects compression::CompressionLz4

flate2 compression

Affects compression::CompressionZlib

zstd compression

Enables zstd ^0.12.4

Affects compression::CompressionZstd

snap compression

Affects compression::CompressionSnappy

openidconnect auth-oauth2
oauth2 auth-oauth2
serde auth-oauth2
serde_json auth-oauth2
tracing telemetry?
data-url auth-oauth2