mirror of
https://github.com/tobi/disktree.git
synced 2026-11-28 08:00:53 +00:00
45 lines
1.4 KiB
TOML
45 lines
1.4 KiB
TOML
[package]
|
|
name = "disktree-core"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
description = "Filesystem scanning and treemap layout for disktree"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[features]
|
|
default = ["cache-db"]
|
|
cache-db = ["disktree-scanner/cache-db"]
|
|
|
|
[dependencies]
|
|
disktree-scanner = { path = "../disktree-scanner", default-features = false }
|
|
chrono = { version = "0.4.45", default-features = false, features = ["clock", "std"] }
|
|
rayon = { workspace = true }
|
|
rustc-hash = { workspace = true }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
sha2 = "0.10"
|
|
|
|
# rustix has no filesystem calls on Windows; `windows.rs` covers them there.
|
|
[target.'cfg(not(windows))'.dependencies]
|
|
rustix = { version = "1.1", features = ["fs"] }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
# The Recycle Bin, through the shell's own file operation.
|
|
trash = { version = "5.2.9", default-features = false, features = ["coinit_apartmentthreaded"] }
|
|
windows-sys = { version = "0.61", features = [
|
|
"Win32_Foundation",
|
|
"Win32_Storage_FileSystem",
|
|
] }
|
|
|
|
# The system trash, through NSFileManager: what Finder's Move to Trash does,
|
|
# without asking to control Finder. Only this backend is used; the crate's
|
|
# Linux and Windows code is not built.
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
trash = { version = "5.2.9", default-features = false }
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|