]> git.lizzy.rs Git - rust.git/blob - Cargo.toml
Introduce GitRepo type
[rust.git] / Cargo.toml
1 [package]
2 name = "rustc_codegen_cranelift"
3 version = "0.1.0"
4 edition = "2021"
5
6 [lib]
7 crate-type = ["dylib"]
8
9 [dependencies]
10 # These have to be in sync with each other
11 cranelift-codegen = { version = "0.88.1", features = ["unwind", "all-arch"] }
12 cranelift-frontend = "0.88.1"
13 cranelift-module = "0.88.1"
14 cranelift-native = "0.88.1"
15 cranelift-jit = { version = "0.88.1", optional = true }
16 cranelift-object = "0.88.1"
17 target-lexicon = "0.12.0"
18 gimli = { version = "0.26.0", default-features = false, features = ["write"]}
19 object = { version = "0.29.0", default-features = false, features = ["std", "read_core", "write", "archive", "coff", "elf", "macho", "pe"] }
20
21 ar = { git = "https://github.com/bjorn3/rust-ar.git", branch = "do_not_remove_cg_clif_ranlib" }
22 indexmap = "1.9.1"
23 libloading = { version = "0.7.3", optional = true }
24 once_cell = "1.10.0"
25 smallvec = "1.8.1"
26
27 [patch.crates-io]
28 # Uncomment to use local checkout of cranelift
29 #cranelift-codegen = { path = "../wasmtime/cranelift/codegen" }
30 #cranelift-frontend = { path = "../wasmtime/cranelift/frontend" }
31 #cranelift-module = { path = "../wasmtime/cranelift/module" }
32 #cranelift-native = { path = "../wasmtime/cranelift/native" }
33 #cranelift-jit = { path = "../wasmtime/cranelift/jit" }
34 #cranelift-object = { path = "../wasmtime/cranelift/object" }
35
36 #gimli = { path = "../" }
37
38 [features]
39 # Enable features not ready to be enabled when compiling as part of rustc
40 unstable-features = ["jit", "inline_asm"]
41 jit = ["cranelift-jit", "libloading"]
42 inline_asm = []
43
44 [package.metadata.rust-analyzer]
45 rustc_private = true