Cargo Features

[dependencies]
time-lib = { version = "0.2.1", default-features = false, features = ["server", "client", "tcp-any", "tcp-binder", "tcp-client", "tcp"] }
default = client, server, tcp

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

server default tcp-binder?

Enables rt, sync and time of tokio

Affects time-lib::server, timer::Timer.started_at, timer::Timer.elapsed, timer::ThreadSafeTimer

client default tcp-client?

Affects time-lib::client

tcp-any tcp-binder? tcp-client?

Enables io-util and net of tokio

Affects time-lib::tcp

tcp-binder tcp = server, tcp-any

Affects server::tcp

tcp-client tcp = client, tcp-any

Affects client::tcp

tcp default = tcp-binder, tcp-client

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.

tokio server tcp-any?