Cargo Features

[dependencies]
systemd_socket = { version = "0.1.1", default-features = false, features = ["serde", "enable_systemd", "parse_arg", "tokio_0_2", "tokio_0_3", "async-std"] }
default = enable_systemd

The enable_systemd feature is set by default whenever systemd_socket is added without default-features = false somewhere in the dependency tree.

serde = serde_crate, serde_str_helpers
enable_systemd default = libsystemd

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

serde_crate serde?

Enables serde

serde_str_helpers serde?
parse_arg implicit feature

Enables parse_arg

parse_arg:

Traits and implementations for parsing command-line arguments

tokio_0_2 implicit feature

Enables tokio ^0.2

tokio:

An event-driven, non-blocking I/O platform for writing asynchronous I/O backed applications

Affects error::TokioBindError, error::TokioConversionError

tokio_0_3 implicit feature

Enables tokio ^0.3

Affects error::TokioBindError, error::TokioConversionError

async-std implicit feature

Enables async-std

async-std:

Async version of the Rust standard library

libsystemd linux enable_systemd

Enables libsystemd ^0.2.1