# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.82"
name = "color"
version = "0.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A library for representing and manipulating colors"
readme = "README.md"
keywords = [
    "color",
    "css",
    "rgb",
]
categories = ["graphics"]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/linebender/color"

[package.metadata.docs.rs]
all-features = true
default-target = "x86_64-unknown-linux-gnu"
targets = []

[features]
bytemuck = ["dep:bytemuck"]
default = ["std"]
libm = ["dep:libm"]
serde = ["dep:serde"]
std = []

[lib]
name = "color"
path = "src/lib.rs"

[[example]]
name = "gradient"
path = "examples/gradient.rs"

[[example]]
name = "interp"
path = "examples/interp.rs"

[[example]]
name = "parse"
path = "examples/parse.rs"

[dependencies.bytemuck]
version = "1.23.0"
optional = true
default-features = false

[dependencies.libm]
version = "0.2.13"
optional = true

[dependencies.serde]
version = "1.0.219"
features = ["derive"]
optional = true
default-features = false

[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"
