Cargo Features

[dependencies]
anybytes = { version = "0.5.0", default-features = false, features = ["frombytes", "fromownedbytes", "frommmap", "fromzerocopy"] }
default = frombytes, frommmap, fromownedbytes, fromzerocopy

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

frombytes default = bytes
fromownedbytes default = ownedbytes
frommmap default = memmap2
fromzerocopy default = zerocopy

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.

bytes frombytes
ownedbytes fromownedbytes
memmap2 frommmap
zerocopy fromzerocopy

Affects anybytes::packed