[package] name = "tree_magic" version = "0.2.3" authors = ["Allison Hancock "] description = "Determines the MIME type of a file by traversing a filetype tree." repository = "https://github.com/aahancoc/tree_magic/" documentation = "https://docs.rs/tree_magic/" readme = "README.md" keywords = ["mime", "filesystem", "media-types"] license = "MIT" exclude = ["tests/*", "benches/*"] [dependencies] petgraph = "^0.5" nom = "^3" lazy_static = "^1.4" fnv = "^1" parking_lot = "^0.10" tabwriter = { version = "^1", optional = true } clap = { version = "^2", optional = true } scoped_threadpool = { version = "^0.1", optional = true } walkdir = { version = "^2", optional = true } num_cpus = { version = "^1", optional = true } [features] cli = ["clap", "tabwriter", "scoped_threadpool", "walkdir", "num_cpus"] staticmime = [] # Use &'static str for output insead of String. (disabled for now) default = [] [lib] crate-type = ["lib"] path = "src/lib.rs" [[bin]] required-features = ["cli"] name = "tmagic" path = "src/main.rs"