[package]
edition = "2024"
name = "hm-util"
version = "0.0.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared OS and filesystem utilities for Harmont crates."
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/harmont-dev/harmont-cli"
resolver = "2"
[lib]
name = "hm_util"
path = "src/lib.rs"
[dependencies.anyhow]
version = "1"
[dependencies.dirs]
version = "6"
[dependencies.tempfile]
version = "3"
[dependencies.tokio]
version = "1"
features = [
"rt",
"rt-multi-thread",
"fs",
"io-util",
]
[dependencies.tracing]
version = "0.1"
[dependencies.which]
version = "6"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = [
"full",
"test-util",
]
[target."cfg(windows)".dependencies.windows]
version = "0.62"
features = [
"Win32_Foundation",
"Win32_Storage_FileSystem",
]
[lints.clippy]
cargo_common_metadata = "allow"
dbg_macro = "deny"
exit = "warn"
expect_used = "warn"
implicit_clone = "deny"
lossy_float_literal = "deny"
mem_forget = "deny"
multiple_crate_versions = "allow"
panic = "warn"
print_stderr = "deny"
print_stdout = "deny"
redundant_pub_crate = "allow"
todo = "deny"
unimplemented = "deny"
unwrap_used = "warn"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "deny"
unreachable_pub = "deny"
unsafe_code = "deny"
unused_must_use = "deny"
[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1
[lints.rust.rust_2024_compatibility]
level = "warn"
priority = -1