Thanks to visit codestin.com
Credit goes to lib.rs

Cargo Features

[dependencies]
lapin = { version = "4.0.3", default-features = false, features = ["default-runtime", "async-global-executor", "hickory-dns", "smol", "tokio", "codegen", "codegen-internal", "native-tls", "openssl", "rustls", "rustls-native-certs", "rustls-webpki-roots-certs", "vendored-openssl", "rustls--aws_lc_rs", "rustls--ring"] }
default = default-runtime, rustls

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

default-runtime default = tokio
async-global-executor

Enables async-global-executor of amq-protocol, async-global-executor and async-io of async-rs

hickory-dns

Enables hickory-dns of amq-protocol and async-rs

async-rs:

hickory-dns only supports tokio as of now

smol

Enables smol of amq-protocol and async-rs

async-rs:

async-io required for implementing IoSafe

tokio default-runtime

Enables tokio of amq-protocol and async-rs

codegen = codegen-internal

Enables codegen of amq-protocol

codegen-internal build codegen?

Enables amq-protocol-codegen and serde_json

native-tls

Enables native-tls of amq-protocol

openssl

Enables openssl of amq-protocol

rustls default

Enables rustls of amq-protocol

rustls-native-certs

Enables rustls-native-certs of amq-protocol

rustls-webpki-roots-certs

Enables rustls-webpki-roots-certs of amq-protocol

vendored-openssl

Enables vendored-openssl of amq-protocol

rustls--aws_lc_rs

rustls crypto providers. Choose at least one. Otherwise, runtime errors. See https://docs.rs/rustls/latest/rustls/#crate-features. for more info default, but doesn't build everywhere

Enables rustls--aws_lc_rs of amq-protocol

rustls--ring

more compatible, (e.g., easily builds on Windows)

Enables rustls--ring of amq-protocol