[package] name = "dircs" version = "0.1.10" authors = ["Clement Tsang "] edition = "2021" repository = "https://github.com/ClementTsang/dircs" keywords = ["cross-platform", "cli", "hash", "checksum"] license = "Apache-2.0" categories = ["command-line-utilities"] description = "A small cross-platform utility to get the hash of a file or directory." readme = "README.md" rust-version = "1.70.0" exclude = [".github", ".vscode", "target", ".markdownlint.json", "CHANGELOG.md"] [[bin]] name = "dircs" path = "src/main.rs" doc = false [profile.dev.package."*"] # Compile dependencies with optimizations on even in debug mode. opt-level = 3 [profile.release] debug = 0 strip = "symbols" lto = true opt-level = 3 codegen-units = 1 [features] blake2 = ["dep:blake2"] # blake3 = ["dep:blake3"] md5 = ["dep:md5"] sha1 = ["dep:sha1"] sha2 = ["dep:sha2"] sha3 = ["dep:sha3"] default = ["blake2", "md5", "sha1", "sha2", "sha3"] [dependencies] anyhow = "1.0.86" blake2 = { version = "0.10.6", optional = true } blake3 = { version = "1.5.4", features = ["rayon"] } # we don't pull mmap as we handle that manually clap = { version = "4.5.16", features = ["derive"] } hex = "0.4.3" jwalk = "0.8.1" md5 = { version = "0.7.0", optional = true } memmap2 = "0.9.4" rayon = "1.10.0" sha1 = { version = "0.10.6", optional = true } sha2 = { version = "0.10.8", optional = true } sha3 = { version = "0.10.8", optional = true } [dev-dependencies] assert_cmd = "2.0.16" [lints.rust] missing_docs = "deny" [lints.rustdoc] broken_intra_doc_links = "deny" missing_crate_level_docs = "deny" [lints.clippy] todo = "deny" unimplemented = "deny" missing_safety_doc = "deny"