# 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 = "2024"
rust-version = "1.90"
name = "myrtio-light-composer"
version = "0.6.3"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "1D LED rendering library"
readme = "README.md"
license = "MIT"

[features]
default = []
esp32-log = ["dep:esp-println"]

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

[[test]]
name = "color"
path = "tests/color.rs"

[[test]]
name = "effect_id"
path = "tests/effect_id.rs"

[[test]]
name = "math8"
path = "tests/math8.rs"

[[test]]
name = "transition"
path = "tests/transition.rs"

[dependencies.critical-section]
version = "1.2"

[dependencies.embassy-time]
version = "0.5.0"

[dependencies.esp-println]
version = "0.16.1"
features = ["esp32"]
optional = true

[dependencies.heapless]
version = "0.8"

[dependencies.libm]
version = "0.2.15"

[dependencies.smart-leds]
version = "0.4.0"

[dev-dependencies.critical-section]
version = "1.2"
features = ["std"]

[dev-dependencies.embassy-time]
version = "0.5.0"
features = ["std"]

[lints.clippy]
char_lit_as_u8 = "allow"
collapsible_else_if = "allow"
collapsible_if = "allow"
dbg_macro = "warn"
debug_assert_with_mut_call = "warn"
empty_drop = "warn"
empty_structs_with_brackets = "warn"
get_unwrap = "warn"
implicit_hasher = "allow"
items_after_statements = "allow"
large_stack_arrays = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_raw_string_hashes = "allow"
print_stderr = "warn"
print_stdout = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
redundant_clone = "warn"
rest_pat_in_fully_bound_structs = "warn"
similar_names = "allow"
single_match_else = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
unused_peekable = "warn"

[lints.clippy.pedantic]
level = "warn"
priority = -2

[lints.rust]
unreachable_pub = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(codspeed)"]
