Cargo Features

[dependencies]
spirit-tokio = { version = "0.9.2", default-features = false, features = ["cfg-help", "multithreaded", "net", "rt-from-cfg", "stream", "futures", "either"] }
default = cfg-help, net, rt-from-cfg, stream

TODO: Cut down on the default features a bit

cfg-help default = structdoc

Enables cfg-help of spirit

multithreaded rt-from-cfg

Enables rt-multi-thread of tokio

net default = humantime, pin-project, socket2

Enables net and time of tokio

Affects handlers::Acceptor, handlers::PerConnection, handlers::PerConnectionInit, spirit-tokio::net

rt-from-cfg default = multithreaded, num_cpus

Enables time of tokio

Affects runtime::Config

stream default = tokio-stream
futures = futures-util

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.

either implicit feature

Enables either

either:

The enum Either with variants Left and Right is a general purpose sum type with two cases

futures-util futures?
humantime net
socket2 net

Enables socket2 ^0.4

num_cpus rt-from-cfg
pin-project net
structdoc cfg-help
tokio-stream stream