showbits/Cargo.toml
2025-02-22 16:02:22 +01:00

62 lines
1.7 KiB
TOML

[workspace]
resolver = "3"
members = ["showbits-assets", "showbits-common", "showbits-thermal-printer"]
[workspace.package]
version = "0.0.0"
edition = "2024"
[workspace.dependencies]
anyhow = "1.0.96"
axum = "0.8.1"
clap = { version = "4.5.30", features = ["derive", "deprecated"] }
comemo = "0.4.0"
cosmic-text = "0.11.2"
escpos = "0.12.2"
image = "0.25.1"
mark.git = "https://github.com/Garmelon/mark.git"
mime_guess = "2.0.4"
palette = "0.7.6"
paste = "1.0.15"
rand = "0.8.5"
rust-embed = "8.4.0"
serde = { version = "1.0.201", features = ["derive"] }
showbits-assets.path = "./showbits-assets"
showbits-common.path = "./showbits-common"
time = "0.3.36"
tokio = "1.37.0"
typst = "0.11.0"
typst-assets = { version = "0.11.0", features = ["fonts"] }
typst-render = "0.11.0"
[workspace.dependencies.taffy]
version = "0.4.3"
default-features = false
features = ["std", "taffy_tree", "flexbox", "grid", "block_layout"]
[workspace.lints]
rust.unsafe_code = { level = "forbid", priority = 1 }
# Lint groups
rust.deprecated_safe = "warn"
rust.future_incompatible = "warn"
rust.keyword_idents = "warn"
rust.rust_2018_idioms = "warn"
rust.unused = "warn"
# Individual lints
rust.non_local_definitions = "warn"
rust.redundant_imports = "warn"
rust.redundant_lifetimes = "warn"
rust.single_use_lifetimes = "warn"
rust.unit_bindings = "warn"
rust.unused_crate_dependencies = "warn"
rust.unused_import_braces = "warn"
rust.unused_lifetimes = "warn"
rust.unused_qualifications = "warn"
# Clippy
clippy.use_self = "warn"
# Optimize dependencies in debug mode (mainly for faster image exports).
# Does not apply to workspace members, only "real" dependencies.
# https://doc.rust-lang.org/cargo/reference/profiles.html#overrides
[profile.dev.package."*"]
opt-level = 3