[package] name = "tricolor" version = "0.1.2" authors = ["Tricrepe "] description = "Color structs, color formats, and color conversions." edition = "2021" readme = "README.md" repository = "https://github.com/CestcaVison/tricolor" categories = ["mathematics", "encoding"] license = "MIT OR Apache-2.0" rust-version = "1.76" keywords = ["gui", "color", "graphics", "images"] include = ["../LICENSE-APACHE", "../LICENSE-MIT", "**/*.rs", "Cargo.toml"] [features] default = ["document-features", "cint"] ## Enable additional checks if debug assertions are enabled (debug builds). extra_debug_asserts = [] ## Always enable additional checks. extra_asserts = [] [dependencies] anyhow = "1.0.83" #! ### Optional dependencies ## [`bytemuck`](https://docs.rs/bytemuck) enables you to cast `ecolor` types to `&[u8]`. bytemuck = { version = "1.15.0", features = ["derive"], optional = true } ## [`cint`](https://docs.rs/cint) enables interoperability with other color libraries. cint = { version = "0.3.1", optional = true } ## Enable the [`hex_color`] macro. color-hex = { version = "0.2.0", optional = true } document-features = { version = "0.2.8", optional = true } ## Allow serialization using [`serde`](https://docs.rs/serde). serde = { version = "1.0.201", features = ["derive"], optional = true }