Krolyxon
Commit 6d9ef16

Branches

Refs →

budctlCargo.toml

34 lines · 1.0 KB · TOML

1[workspace]
2resolver = "3"
3members = ["crates/budctl-core", "crates/budctl-cli", "crates/budctl-gui"]
4
5[workspace.package]
6version = "0.1.3"
7edition = "2024"
8rust-version = "1.88"
9license = "GPL-3.0-or-later"
10publish = false
11
12[workspace.lints.rust]
13# The only exception is crates/budctl-core/src/transport/socket.rs (Bluetooth socket syscalls).
14unsafe_code = "deny"
15
16[workspace.lints.clippy]
17# Bluetooth fails in many ways; every failure must become a typed error, never a panic.
18unwrap_used = "deny"
19expect_used = "deny"
20panic = "deny"
21indexing_slicing = "deny"
22cast_possible_truncation = "deny"
23undocumented_unsafe_blocks = "deny"
24
25# Debug builds (`cargo run`, the tests): the dependencies optimized, our crates not. Unoptimized,
26# the GUI's CPU renderer draws a frame about 20 times slower, and the window lags.
27[profile.dev.package."*"]
28opt-level = 3
29
30# Release builds: the binaries the install script ships. No debug symbols, and whole-crate
31# optimization across the dependency tree, for smaller and faster binaries.
32[profile.release]
33strip = true
34lto = "thin"