Cargo Features

[dependencies]
transformable = { version = "0.2.2", default-features = false, features = ["std", "alloc", "async", "bytes1", "smol_str03", "smol_str02", "smallvec1", "triomphe01"] }
default = std

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

std default async?

Enables byteorder and std of thiserror

thiserror:

Std feature enables support for formatting std::path::{Path, PathBuf}
conveniently in an error message.

#[derive(Error, Debug)]
#[error("failed to create configuration file {path}")]
pub struct MyError {
pub path: PathBuf,
pub source: std::io::Error,
}

Without std, this would need to be written #[error("... {}", path.display())].

Affects transformable::Transformable.encode_to_writer, transformable::Transformable.decode_from_reader, transformable::Encodable.encode_to_writer, transformable::Decodable.decode_from_reader, transformable::Transformable.encode_to_vec, transformable::Encodable.encode_to_vec

alloc

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?
bytes1 implicit feature

Enables bytes

bytes:

Types and traits for working with bytes

smol_str03 implicit feature

Enables smol_str

smol_str:

small-string optimized string type with O(1) clone

smol_str02 implicit feature

Enables smol_str ^0.2

smallvec1 implicit feature

Enables smallvec

smallvec:

'Small vector' optimization: store up to a small number of items on the stack

triomphe01 implicit feature

Enables triomphe