Cargo Features

[dependencies]
code128 = { version = "0.2.1", default-features = false, features = ["std", "unicode"] }
default = std, unicode

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

std default

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

unicode default

Code128 has 3 features without comments.