]> git.lizzy.rs Git - rust.git/commitdiff
Disable read feature of gimli
authorbjorn3 <bjorn3@users.noreply.github.com>
Thu, 9 Jan 2020 16:59:59 +0000 (17:59 +0100)
committerbjorn3 <bjorn3@users.noreply.github.com>
Thu, 9 Jan 2020 16:59:59 +0000 (17:59 +0100)
Cargo.toml

index efe56bffdca7252232128a3ed5965a97875a5b47..0b2b8652fa0017e63062d32a6b0b1767ffbf13ec 100644 (file)
@@ -25,15 +25,18 @@ faerie = "0.12.0"
 ar = "0.8.0"
 byteorder = "1.2.7"
 libc = "0.2.53"
-gimli = "0.19.0"
 indexmap = "1.0.2"
-libloading = "0.5.1"
 
 [dependencies.object]
 version = "0.16.0"
 default-features = false
 features = ["compression", "read", "std"] # We don't need WASM support
 
+[dependencies.gimli]
+version = "0.19.0"
+default-features = false
+features = ["write"] # We don't need read support
+
 # Uncomment to use local checkout of cranelift
 #[patch."https://github.com/bytecodealliance/cranelift/"]
 #cranelift-codegen = { path = "../cranelift/cranelift-codegen", default-features = false, features = ["std"] }
@@ -48,6 +51,7 @@ features = ["compression", "read", "std"] # We don't need WASM support
 
 [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
 cranelift-simplejit = { git = "https://github.com/bytecodealliance/cranelift/" }
+libloading = "0.5.1"
 
 [profile.dev]
 # By compiling dependencies with optimizations, performing tests gets much faster.