[dependencies.bytemuck]
default-features = false
optional = true
version = "1.23.2"
[dependencies.libm]
optional = true
version = "0.2.15"
[dependencies.serde]
default-features = false
features = ["derive"]
optional = true
version = "1.0.219"
[[example]]
name = "gradient"
path = "examples/gradient.rs"
[[example]]
name = "interp"
path = "examples/interp.rs"
[[example]]
name = "parse"
path = "examples/parse.rs"
[features]
bytemuck = ["dep:bytemuck"]
default = ["std"]
libm = ["dep:libm"]
serde = ["dep:serde"]
std = []
[lib]
name = "color"
path = "src/lib.rs"
[lints.clippy]
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
cargo_common_metadata = "warn"
cast_possible_truncation = "warn"
collection_is_never_read = "warn"
dbg_macro = "warn"
debug_assert_with_mut_call = "warn"
doc_markdown = "warn"
exhaustive_enums = "warn"
fn_to_numeric_cast_any = "forbid"
infinite_loop = "warn"
large_include_file = "warn"
large_stack_arrays = "warn"
match_same_arms = "warn"
mismatching_type_param_order = "warn"
missing_assert_message = "warn"
missing_errors_doc = "warn"
missing_fields_in_debug = "warn"
missing_panics_doc = "warn"
negative_feature_names = "warn"
partial_pub_fields = "warn"
redundant_feature_names = "warn"
return_self_not_must_use = "warn"
same_functions_in_if_condition = "warn"
semicolon_if_nothing_returned = "warn"
shadow_unrelated = "warn"
should_panic_without_expect = "warn"
todo = "warn"
trivially_copy_pass_by_ref = "warn"
unseparated_literal_suffix = "warn"
use_self = "warn"
wildcard_dependencies = "warn"
wildcard_imports = "warn"
[lints.rust]
elided_lifetimes_in_paths = "warn"
keyword_idents_2024 = "forbid"
let_underscore_drop = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
non_ascii_idents = "forbid"
non_local_definitions = "forbid"
single_use_lifetimes = "warn"
trivial_numeric_casts = "warn"
unexpected_cfgs = "warn"
unit_bindings = "warn"
unnameable_types = "warn"
unreachable_pub = "warn"
unsafe_code = "deny"
unsafe_op_in_unsafe_fn = "forbid"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
unused_qualifications = "warn"
variant_size_differences = "warn"
[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["graphics"]
description = "A library for representing and manipulating colors"
edition = "2021"
keywords = ["color", "css", "rgb"]
license = "Apache-2.0 OR MIT"
name = "color"
readme = "README.md"
repository = "https://github.com/linebender/color"
rust-version = "1.82"
version = "0.3.2"
[package.metadata.docs.rs]
all-features = true
default-target = "x86_64-unknown-linux-gnu"
targets = []