mirror of
https://github.com/tobi/disktree.git
synced 2026-11-28 16:00:45 +00:00
- The home directory comes from std::env::home_dir, which reads USERPROFILE on Windows and HOME elsewhere. - The root is canonicalized through dunce, so Windows paths read C:\Users\... rather than \?\C:\..., the form nothing else is written in and which would never match the home directory. - A windowed program on Windows: no console window from Explorer or the Start menu. It attaches to the console of a terminal it was started from, as Alacritty does, so --help and errors still show there. - Paths after ~ and the trail between crumbs use the platform's separator: ~\AppData\Local, C:\ Users \ tobi.
34 lines
867 B
TOML
34 lines
867 B
TOML
[package]
|
|
name = "disktree-app"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
description = "GPUI treemap explorer for disk usage, in Omarchy's visual language"
|
|
|
|
[[bin]]
|
|
name = "disktree"
|
|
path = "src/main.rs"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
gpui-kit = { version = "=0.6.1", default-features = false, features = ["assets"] }
|
|
gpui-omarchy = "0.1.2"
|
|
disktree-core = { workspace = true }
|
|
anyhow = { workspace = true }
|
|
dunce = "1.0.5"
|
|
rustc-hash = { workspace = true }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows-sys = { version = "0.61", features = ["Win32_System_Console"] }
|
|
|
|
[dev-dependencies]
|
|
# The window harness: it lets the tests draw a real frame and press real keys.
|
|
gpui-kit = { version = "=0.6.1", default-features = false, features = [
|
|
"assets",
|
|
"test-support",
|
|
] }
|
|
tempfile = "3"
|