]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_codegen_cranelift/Cargo.toml
Auto merge of #107768 - matthiaskrgr:rollup-9u4cal4, r=matthiaskrgr
[rust.git] / compiler / rustc_codegen_cranelift / Cargo.toml
1 [package]
2 name = "rustc_codegen_cranelift"
3 version = "0.1.0"
4 edition = "2021"
5
6 [[bin]]
7 # This is used just to teach rust-analyzer how to check the build system. required-features is used
8 # to disable it for regular builds.
9 name = "y"
10 path = "./y.rs"
11 required-features = ["__check_build_system_using_ra"]
12
13 [lib]
14 crate-type = ["dylib"]
15
16 [dependencies]
17 # These have to be in sync with each other
18 cranelift-codegen = { version = "0.92", features = ["unwind", "all-arch"] }
19 cranelift-frontend = { version = "0.92" }
20 cranelift-module = { version = "0.92" }
21 # NOTE vendored as src/cranelift_native.rs
22 # FIXME revert back to the external crate with Cranelift 0.93
23 #cranelift-native = { version = "0.92" }
24 cranelift-jit = { version = "0.92", optional = true }
25 cranelift-object = { version = "0.92" }
26 target-lexicon = "0.12.0"
27 gimli = { version = "0.26.0", default-features = false, features = ["write"]}
28 object = { version = "0.29.0", default-features = false, features = ["std", "read_core", "write", "archive", "coff", "elf", "macho", "pe"] }
29
30 indexmap = "1.9.1"
31 libloading = { version = "0.7.3", optional = true }
32 once_cell = "1.10.0"
33 smallvec = "1.8.1"
34
35 [patch.crates-io]
36 # Uncomment to use local checkout of cranelift
37 #cranelift-codegen = { path = "../wasmtime/cranelift/codegen" }
38 #cranelift-frontend = { path = "../wasmtime/cranelift/frontend" }
39 #cranelift-module = { path = "../wasmtime/cranelift/module" }
40 #cranelift-native = { path = "../wasmtime/cranelift/native" }
41 #cranelift-jit = { path = "../wasmtime/cranelift/jit" }
42 #cranelift-object = { path = "../wasmtime/cranelift/object" }
43
44 #gimli = { path = "../" }
45
46 [features]
47 # Enable features not ready to be enabled when compiling as part of rustc
48 unstable-features = ["jit", "inline_asm"]
49 jit = ["cranelift-jit", "libloading"]
50 inline_asm = []
51 __check_build_system_using_ra = []
52
53 [package.metadata.rust-analyzer]
54 rustc_private = true