Files
Oleg Shevchuk 5aa98e3818 app: run on Windows
- 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.
2026-09-25 15:09:18 +05:00

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"