40 lines
1.2 KiB
TOML
40 lines
1.2 KiB
TOML
[package]
|
|
name = "rs-pictures"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[[bin]]
|
|
name = "rs-pictures"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
# Image loading and encoding
|
|
image = { version = "0.25", features = ["png", "jpeg"] }
|
|
|
|
# 2D rendering for effects (rounded corners, drop shadow)
|
|
tiny-skia = "0.11"
|
|
|
|
# Config serialization
|
|
serde = { version = "1", features = ["derive"] }
|
|
|
|
# Error handling
|
|
anyhow = "1"
|
|
serde_json = "1.0.149"
|
|
|
|
# ── Build profiles ────────────────────────────────────────────────────────────
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
lto = "thin" # link-time optimisation across crates
|
|
codegen-units = 1 # better inlining at the cost of compile time
|
|
strip = true # strip debug symbols → smaller binary
|
|
|
|
# Dev builds are slow for pixel-processing code. This gives opt-level 2
|
|
# to our own crate only while keeping dependencies at their default (opt=3
|
|
# they already compiled with), so incremental rebuilds stay fast.
|
|
[profile.dev]
|
|
opt-level = 0
|
|
|
|
[profile.dev.package."*"]
|
|
opt-level = 3 # all deps at full optimisation even in dev mode
|