Cargo Features

bytes = { version = "1.5.0", default-features = false, features = ["std", "serde"] }
default = std

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

std default

Affects buf_impl::Buf.chunks_vectored, buf_impl::Buf.reader, buf_mut::BufMut.writer

Features from optional dependencies

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

serde implicit feature

With alloc