From 24692adb939fdb906584bb6b84423368347265ce Mon Sep 17 00:00:00 2001 From: neri Date: Wed, 18 Aug 2021 23:32:58 +0200 Subject: [PATCH] use tree_magic_db --- Cargo.lock | 7 +++++++ Cargo.toml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 3a35319..7fcaa29 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2499,6 +2499,12 @@ dependencies = [ "tracing", ] +[[package]] +name = "tree_magic_db" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e73fc24a5427b3b15e2b0bcad8ef61b5affb1da8ac89c8bf3f196c8692d57f02" + [[package]] name = "tree_magic_mini" version = "3.0.0" @@ -2510,6 +2516,7 @@ dependencies = [ "nom 6.1.2", "once_cell", "petgraph", + "tree_magic_db", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index fc4c1c7..e3c9fa5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,5 +19,5 @@ rand = "0.8.3" chrono = "0.4.19" htmlescape = "0.3.1" urlencoding = "2.1.0" -tree_magic_mini = "3.0.0" +tree_magic_mini = { version = "3.0.0", features = ["with-gpl-data"] } mime = "0.3.16"