From f1793934d66caa5cf0bde18a46f57f57f7277521 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 19 Aug 2021 10:30:18 -0500 Subject: [PATCH] Disable default features of `gimli` (#3208) * Disable default features of `gimli` For cranelift-less builds this avoids pulling in extra dependencies into `gimli` that we don't need, improving build times slightly. * Enable read features where necessary --- crates/cranelift/Cargo.toml | 2 +- crates/environ/Cargo.toml | 2 +- crates/profiling/Cargo.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/cranelift/Cargo.toml b/crates/cranelift/Cargo.toml index aa5e855af5..21368f0eae 100644 --- a/crates/cranelift/Cargo.toml +++ b/crates/cranelift/Cargo.toml @@ -20,7 +20,7 @@ cranelift-entity = { path = "../../cranelift/entity", version = "0.76.0" } cranelift-native = { path = '../../cranelift/native', version = '0.76.0' } wasmparser = "0.80.0" target-lexicon = "0.12" -gimli = "0.25.0" +gimli = { version = "0.25.0", default-features = false, features = ['read', 'std'] } object = { version = "0.26.0", default-features = false, features = ['write'] } more-asserts = "0.2.1" thiserror = "1.0.4" diff --git a/crates/environ/Cargo.toml b/crates/environ/Cargo.toml index 375b73f467..a16f6f079b 100644 --- a/crates/environ/Cargo.toml +++ b/crates/environ/Cargo.toml @@ -21,7 +21,7 @@ serde = { version = "1.0.94", features = ["derive"] } log = { version = "0.4.8", default-features = false } more-asserts = "0.2.1" cfg-if = "1.0" -gimli = "0.25.0" +gimli = { version = "0.25.0", default-features = false, features = ['read'] } target-lexicon = "0.12" [badges] diff --git a/crates/profiling/Cargo.toml b/crates/profiling/Cargo.toml index 931696a8e1..7923ba5410 100644 --- a/crates/profiling/Cargo.toml +++ b/crates/profiling/Cargo.toml @@ -12,7 +12,7 @@ edition = "2018" [dependencies] anyhow = "1.0" cfg-if = "1.0" -gimli = { version = "0.25.0", optional = true } +gimli = { version = "0.25.0", optional = true, default-features = false } lazy_static = "1.4" libc = { version = "0.2.60", default-features = false } scroll = { version = "0.10.1", features = ["derive"], optional = true }