Cargo Features

[dependencies]
wincode = { version = "0.4.5", default-features = false, features = ["std", "alloc", "solana-short-vec", "derive", "uuid", "uuid-serde-compat", "bytes", "bytes-extra-platforms"] }
default = std

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

std default = alloc

Enables 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())].

alloc bytes? std

Affects serde::Serialize.serialize, serde::serialize, cursor::TrustedVecWriter, containers::Vec, containers::VecDeque, containers::Box, containers::Rc, containers::Arc, containers::BinaryHeap, serde::Serialize.serialize, serde::serialize

solana-short-vec

Enables solana-short-vec

Affects len::short_vec

derive

Enables wincode-derive

uuid uuid-serde-compat?

Enables uuid

uuid-serde-compat = uuid
bytes bytes-extra-platforms? = alloc

Enables bytes

bytes-extra-platforms = bytes

Enables extra-platforms of bytes