From 0d872688f92a849527595c97f65fe98d2c9ec54c Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Thu, 21 May 2020 17:05:06 -0700 Subject: [PATCH] Use temporary fork of tree_magic --- Cargo.lock | 78 +++++++++--------------------------------------------- Cargo.toml | 4 +++ 2 files changed, 17 insertions(+), 65 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6cfd5a6..aab3217 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -27,7 +27,7 @@ dependencies = [ "futures-timer", "kv-log-macro", "log", - "memchr 2.3.3", + "memchr", "mio", "mio-uds", "num_cpus", @@ -95,15 +95,6 @@ version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" -[[package]] -name = "cloudabi" -version = "0.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f" -dependencies = [ - "bitflags", -] - [[package]] name = "crossbeam-channel" version = "0.4.2" @@ -272,7 +263,7 @@ dependencies = [ "futures-macro", "futures-sink", "futures-task", - "memchr 2.3.3", + "memchr", "pin-project", "pin-utils", "proc-macro-hack", @@ -358,15 +349,6 @@ version = "0.2.70" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3baa92041a6fec78c687fa0cc2b3fae8884f743d672cf551bed1d6dac6988d0f" -[[package]] -name = "lock_api" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4da24a77a3d8a6d4862d95f72e6fdb9c09a643ecdb402d754004a557f2bec75" -dependencies = [ - "scopeguard", -] - [[package]] name = "log" version = "0.4.8" @@ -388,15 +370,6 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00" -[[package]] -name = "memchr" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "148fab2e51b4f1cfc66da2a7c32981d1d3c083a803978268bb11fe4b86925e7a" -dependencies = [ - "libc", -] - [[package]] name = "memchr" version = "2.3.3" @@ -467,11 +440,12 @@ dependencies = [ [[package]] name = "nom" -version = "3.2.1" +version = "4.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05aec50c70fd288702bcd93284a8444607f3292dbdf2a30de5ea5dcdbe72287b" +checksum = "2ad2a91a8e869eeb30b9cb3119ae87773a8f4ae617f41b1eb9c154b2905f7bd6" dependencies = [ - "memchr 1.0.2", + "memchr", + "version_check", ] [[package]] @@ -490,30 +464,6 @@ version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b631f7e854af39a1739f401cf34a8a013dfe09eac4fa4dba91e9768bd28168d" -[[package]] -name = "parking_lot" -version = "0.10.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3a704eb390aafdc107b0e392f56a82b668e3a71366993b5340f5833fd62505e" -dependencies = [ - "lock_api", - "parking_lot_core", -] - -[[package]] -name = "parking_lot_core" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d58c7c768d4ba344e3e8d72518ac13e259d7c7ade24167003b8488e10b6740a3" -dependencies = [ - "cfg-if", - "cloudabi", - "libc", - "redox_syscall", - "smallvec", - "winapi 0.3.8", -] - [[package]] name = "percent-encoding" version = "2.1.0" @@ -592,12 +542,6 @@ dependencies = [ "proc-macro2", ] -[[package]] -name = "redox_syscall" -version = "0.1.56" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2439c63f3f6139d1b57529d16bc3b8bb855230c8efcc5d3a896c8bea7c3b1e84" - [[package]] name = "ring" version = "0.16.13" @@ -674,13 +618,11 @@ dependencies = [ [[package]] name = "tree_magic" version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1d99367ce3e553a84738f73bd626ccca541ef90ae757fdcdc4cbe728e6cb629" +source = "git+https://github.com/mbrubeck/tree_magic?branch=override#3562ba156b60172e8e94ad29882ed852279763a2" dependencies = [ "fnv", "lazy_static", "nom", - "parking_lot", "petgraph", ] @@ -725,6 +667,12 @@ dependencies = [ "percent-encoding", ] +[[package]] +name = "version_check" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "914b1a6776c4c929a602fafd8bc742e06365d4bcbe48c30f9cca5824f70dc9dd" + [[package]] name = "wasm-bindgen" version = "0.2.62" diff --git a/Cargo.toml b/Cargo.toml index 318673d..a22aa20 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,3 +22,7 @@ url = "2.1" lto = true codegen-units = 1 panic = "abort" + +[patch.crates-io.tree_magic] +git = "https://github.com/mbrubeck/tree_magic" +branch = "override"