From 65fbcd05ba49edb726bca36d5837e5980de4e022 Mon Sep 17 00:00:00 2001 From: messense Date: Sat, 10 Jul 2021 09:37:48 +0800 Subject: [PATCH] Disable default `bitcode` feature of `fat-macho` crate We're only processing dylibs, this reduces some dependences. --- Cargo.lock | 56 ++---------------------------------------------------- Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 55 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7ff87f77f..eee8f15f5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -349,17 +349,6 @@ dependencies = [ "libc", ] -[[package]] -name = "derivative" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "digest" version = "0.9.0" @@ -413,12 +402,11 @@ dependencies = [ [[package]] name = "fat-macho" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7cea1ef4f3c3d80c52baa078f176033432c66260c687271007c6b95f33a424fa" +checksum = "72a338367c470960566e48aeb4952c9fd889851f976cd3bdd473d3865e7b7b91" dependencies = [ "goblin", - "llvm-bitcode", ] [[package]] @@ -822,15 +810,6 @@ version = "0.2.98" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "320cfe77175da3a483efed4bc0adc1968ca050b098ce4f2f1c13a56626128790" -[[package]] -name = "llvm-bitcode" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b95dfd93cc39d3f09d996e5210905cf97f542aa54c08906a8e8b5f6ad5853bb" -dependencies = [ - "num_enum", -] - [[package]] name = "log" version = "0.4.14" @@ -1048,28 +1027,6 @@ dependencies = [ "libc", ] -[[package]] -name = "num_enum" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "226b45a5c2ac4dd696ed30fa6b94b057ad909c7b7fc2e0d0808192bced894066" -dependencies = [ - "derivative", - "num_enum_derive", -] - -[[package]] -name = "num_enum_derive" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c0fd9eba1d5db0994a239e09c1be402d35622277e35468ba891aa5e3188ce7e" -dependencies = [ - "proc-macro-crate", - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "object" version = "0.25.3" @@ -1156,15 +1113,6 @@ dependencies = [ "log", ] -[[package]] -name = "proc-macro-crate" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785" -dependencies = [ - "toml", -] - [[package]] name = "proc-macro-error" version = "1.0.4" diff --git a/Cargo.toml b/Cargo.toml index 708f43788..0da9e91aa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -51,7 +51,7 @@ thiserror = "1.0.24" dirs = { version = "3.0.1", optional = true } configparser = { version = "2.0.0", optional = true } fs-err = "2.5.0" -fat-macho = "0.4.3" +fat-macho = { version = "0.4.4", default-features = false } once_cell = "1.7.2" scroll = "0.10.2" target-lexicon = "0.12.0"