Cargo Features

[dependencies]
postage = { version = "0.5.0", default-features = false, features = ["blocking", "debug", "futures-traits", "logging"] }
default = blocking, logging

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

blocking default = pollster

enables blocking send and receive

Affects sink::Sink.blocking_send, stream::Stream.blocking_recv

debug = log, simple_logger

enables debug log statements. disabled by default in production builds as they are *very verbose*

futures-traits = futures

enables futures Sink and Stream implementations

logging default = log

enables combinators that log their messages

Affects sink::Sink.log, stream::Stream.log

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.

log debug? logging
futures futures-traits?
pollster blocking

Enables pollster ^0.2

simple_logger debug?

Enables simple_logger ^2.1