Cargo Features

[dependencies]
maj = { version = "0.6.0", default-features = false, features = ["client", "server"] }
default = client, server

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

client default = async-std, tokio, tokio-rustls, webpki, webpki-roots

Enables client of async-tls

server default = async-std, async-trait, rustls, webpki, webpki-roots

Enables server of async-tls

Affects maj::server

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.

async-std client server
async-tls client server
async-trait server
rustls server

Enables rustls ^0.18

tokio-rustls client

Enables tokio-rustls ^0.14

tokio client

Enables tokio ^0.2

webpki-roots client server

Enables webpki-roots ^0.20

webpki client server

Enables webpki ^0.21.0