Cargo Features

[dependencies]
qoi = { version = "0.4.1", default-features = false, features = ["alloc", "std", "reference"] }
default = std

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

alloc

provides access to Vec without enabling std mode

Affects decode::decode_to_vec, encode::encode_to_vec

std default

std mode (enabled by default) - provides access to std::io, Error and Vec

Affects utils::GenericWriter, decode::decode_to_vec, encode::encode_to_vec

reference

follows reference encoder implementation precisely, but may be slightly slower