mirror of
https://github.com/tobi/disktree.git
synced 2026-11-28 08:00:53 +00:00
Linux, macOS and Windows, each x86_64 and aarch64, on native runners. The release is drafted first and published once every build is in, so a failed build never leaves a public release missing downloads. CI tests the three architectures it did not run on before. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
87 lines
3.1 KiB
TOML
87 lines
3.1 KiB
TOML
[workspace]
|
|
resolver = "3"
|
|
members = ["crates/disktree-app", "crates/disktree-core", "xtask"]
|
|
|
|
[workspace.package]
|
|
version = "0.10.0"
|
|
edition = "2024"
|
|
rust-version = "1.97"
|
|
license = "MIT"
|
|
repository = "https://github.com/tobi/disktree"
|
|
|
|
[workspace.dependencies]
|
|
disktree-core = { path = "crates/disktree-core" }
|
|
anyhow = "1"
|
|
rayon = "1"
|
|
rustc-hash = "2"
|
|
|
|
# Lint gates follow omatrack's policy: the checks that catch real defects are
|
|
# errors, and every deliberate omission is written down instead of silently
|
|
# tolerated. Run them through `cargo xtask lint`, which adds `-D warnings` on
|
|
# top so nothing is merely "warned about".
|
|
[workspace.lints.rust]
|
|
unsafe_code = "deny"
|
|
unused_lifetimes = "warn"
|
|
trivial_casts = "warn"
|
|
trivial_numeric_casts = "warn"
|
|
missing_debug_implementations = "warn"
|
|
rust_2018_idioms = { level = "deny", priority = -1 }
|
|
|
|
[workspace.lints.clippy]
|
|
all = { level = "deny", priority = -1 }
|
|
pedantic = { level = "deny", priority = -1 }
|
|
nursery = { level = "warn", priority = -1 }
|
|
|
|
# Deliberate omissions, mirroring the rationale comments in omatrack's
|
|
# .clang-tidy:
|
|
# module_name_repetitions - `treemap::TreemapLayout` reads better than
|
|
# inventing a second vocabulary for one concept.
|
|
# missing_errors_doc - this is an application; the error types are
|
|
# missing_panics_doc reachable from the caller in one screen.
|
|
# must_use_candidate - noise on small private helpers.
|
|
# struct_excessive_bools - scan options are bool flags by nature.
|
|
# cast_precision_loss - byte counts become f64 geometry, by design.
|
|
# cast_possible_truncation The layout pass is the only place that is
|
|
# cast_sign_loss true, and the ranges are bounded by the
|
|
# viewport.
|
|
# similar_names - (x, y), (w, h), (cols, rows).
|
|
# too_many_lines - render functions are linear on purpose.
|
|
# option_if_let_else - `if let` keeps ownership visible.
|
|
# multiple_crate_versions - the dependency graph is not ours to fix.
|
|
# cast_lossless - explicit `as` in layout math is clearer than
|
|
# From chains.
|
|
#
|
|
# `unreachable_pub` is left off the workspace set: the only library here is a
|
|
# workspace-internal one, so every `pub` is unreachable from outside by
|
|
# construction and the check would only produce noise.
|
|
module_name_repetitions = "allow"
|
|
missing_errors_doc = "allow"
|
|
missing_panics_doc = "allow"
|
|
must_use_candidate = "allow"
|
|
struct_excessive_bools = "allow"
|
|
cast_precision_loss = "allow"
|
|
cast_possible_truncation = "allow"
|
|
cast_sign_loss = "allow"
|
|
cast_lossless = "allow"
|
|
similar_names = "allow"
|
|
too_many_lines = "allow"
|
|
option_if_let_else = "allow"
|
|
multiple_crate_versions = "allow"
|
|
|
|
[profile.dev]
|
|
debug = "limited"
|
|
opt-level = 1
|
|
|
|
[profile.dev.package."*"]
|
|
opt-level = 2
|
|
|
|
[profile.release]
|
|
lto = "thin"
|
|
codegen-units = 1
|
|
overflow-checks = true
|
|
|
|
# gpui-pre-macros leaves a helper ungated in release builds while its module is
|
|
# gated on debug_assertions; enable it for the host proc-macro only.
|
|
[profile.release.package.gpui-pre-macros]
|
|
debug-assertions = true
|