Cargo Features
[dependencies]
transformable = { version = "0.1.9", default-features = false, features = ["std", "alloc", "async", "bytes", "smol_str", "smallvec"] }
- default = std
-
The
std
feature is set by default whenevertransformable
is added without
somewhere in the dependency tree.default-features = false - std default async? = alloc
-
Enables byteorder
Affects
transformable::Transformable
,transformable::Encodable
,transformable::Decodable
… - alloc std
-
Affects
transformable::Transformable.encode_to_vec
,transformable::Encodable.encode_to_vec
… - async = futures-util, std
-
Affects
transformable::Transformable.encode_to_async_writer
,transformable::Transformable.decode_from_async_reader
,transformable::Encodable.encode_to_async_writer
,transformable::Decodable.decode_from_async_reader
…
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.
- futures-util async?
- bytes implicit feature
-
Enables bytes
bytes:
Types and traits for working with bytes
- smol_str implicit feature
-
Enables smol_str ^0.2
smol_str:
small-string optimized string type with O(1) clone
- smallvec implicit feature
-
Enables smallvec
smallvec:
'Small vector' optimization: store up to a small number of items on the stack