Cargo Features

[dependencies]
sea-streamer-socket = { version = "0.5.2", default-features = false, features = ["executables", "runtime-async-std", "runtime-tokio", "backend-kafka", "backend-redis", "backend-stdio", "backend-file"] }
default = backend-stdio

sadly cannot compile without one backend

executables = anyhow, clap, env_logger, runtime-tokio

Enables full of tokio

tokio:

enable everything

Required by the relay binary

runtime-async-std

Enables runtime-async-std of optional sea-streamer-file, optional sea-streamer-kafka, optional sea-streamer-redis, and optional sea-streamer-stdio

runtime-tokio executables?

Enables runtime-tokio of optional sea-streamer-file, optional sea-streamer-kafka, optional sea-streamer-redis, and optional sea-streamer-stdio

backend-kafka = sea-streamer-kafka

Affects backend::SeaStreamerBackend.get_kafka…

backend-redis = sea-streamer-redis

Affects backend::SeaStreamerBackend.get_redis…

backend-stdio default = sea-streamer-stdio

Affects backend::SeaStreamerBackend.get_stdio…

backend-file = sea-streamer-file

Affects backend::SeaStreamerBackend.get_file…

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.

anyhow executables?
env_logger executables?

Enables env_logger ^0.9

sea-streamer-kafka backend-kafka?
sea-streamer-redis backend-redis?
sea-streamer-stdio backend-stdio
sea-streamer-file backend-file?
clap executables?
tokio executables?