]> git.lizzy.rs Git - rust.git/blobdiff - Cargo.toml
Merge pull request #1079 from CohenArthur/fmt-master
[rust.git] / Cargo.toml
index 0a0172429f38a2b49de98019863ab80005cd4110..858a0f0e33e3f7ca48dcd0abdf470b6eed35c285 100644 (file)
@@ -12,23 +12,18 @@ crate-type = ["dylib"]
 cranelift-codegen = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main", features = ["unwind"] }
 cranelift-frontend = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main" }
 cranelift-module = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main" }
+cranelift-simplejit = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main", optional = true }
 cranelift-object = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main" }
 target-lexicon = "0.10.0"
+gimli = { version = "0.21.0", default-features = false, features = ["write"]}
+object = { version = "0.21.1", default-features = false, features = ["read", "std", "write"] }
 
-ar = "0.8.0"
+ar = { git = "https://github.com/bjorn3/rust-ar.git", branch = "do_not_remove_cg_clif_ranlib" }
 byteorder = "1.2.7"
 indexmap = "1.0.2"
 cfg-if = "0.1.10"
-
-[dependencies.object]
-version = "0.20.0"
-default-features = false
-features = ["read", "std", "write"] # We don't need WASM support
-
-[dependencies.gimli]
-version = "0.21.0"
-default-features = false
-features = ["write"] # We don't need read support
+libloading = { version = "0.6.0", optional = true }
+hashbrown = "0.8.1"
 
 # Uncomment to use local checkout of cranelift
 #[patch."https://github.com/bytecodealliance/wasmtime/"]
@@ -41,9 +36,10 @@ features = ["write"] # We don't need read support
 #[patch.crates-io]
 #gimli = { path = "../" }
 
-[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
-cranelift-simplejit = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main" }
-libloading = "0.6.0"
+[features]
+default = ["jit", "inline_asm"]
+jit = ["cranelift-simplejit", "libloading"]
+inline_asm = []
 
 [profile.dev]
 # By compiling dependencies with optimizations, performing tests gets much faster.