Cargo Features

[dependencies]
irc = { version = "1.0.0", default-features = false, features = ["channel-lists", "json_config", "toml_config", "yaml_config", "json", "yaml", "proxy", "tls-native", "tls-rust"] }
default = channel-lists, ctcp, tls-native, toml_config

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

ctcp channel-lists default
json_config json? = serde, serde_derive, serde_json

Enables derive of serde

Feature - Config

toml_config default = serde, serde_derive, toml

Enables derive of serde

Affects error::TomlError

yaml_config yaml? = serde, serde_derive, serde_yaml

Enables derive of serde

json = json_config

Temporary transitionary features

yaml = yaml_config
proxy = tokio-socks

Affects config::Config.proxy_type, config::Config.proxy_server, config::Config.proxy_port, config::Config.proxy_username, config::Config.proxy_password, data::proxy, proxy::ProxyType

tls-native default = native-tls, tokio-native-tls

Affects config::Config.use_tls, config::Config.cert_path, config::Config.client_cert_path, config::Config.client_cert_pass, config::Config.dangerously_accept_invalid_certs

tls-rust = rustls-pemfile, tokio-rustls, webpki-roots

Affects config::Config.use_tls, config::Config.cert_path, config::Config.client_cert_path, config::Config.client_cert_pass, config::Config.dangerously_accept_invalid_certs

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.

serde json_config? toml_config yaml_config?
serde_derive json_config? toml_config yaml_config?
serde_json json_config?
serde_yaml yaml_config?
toml toml_config

Enables toml ^0.7.3

tokio-socks proxy?

Enables tokio-socks

Feature - Proxy

native-tls tls-native

Enables native-tls

Feature - TLS

tokio-rustls tls-rust?

Enables tokio-rustls ^0.24.0

rustls-pemfile tls-rust?

Enables rustls-pemfile ^1.0.2

tokio-native-tls tls-native
webpki-roots tls-rust?

Enables webpki-roots ^0.23.0