]>
Commit | Line | Data |
---|---|---|
29967ef6 XL |
1 | [package] |
2 | name = "rustc_codegen_cranelift" | |
3 | version = "0.1.0" | |
c295e0f8 | 4 | edition = "2021" |
29967ef6 | 5 | |
9c376795 FG |
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 | ||
29967ef6 XL |
13 | [lib] |
14 | crate-type = ["dylib"] | |
15 | ||
16 | [dependencies] | |
17 | # These have to be in sync with each other | |
9c376795 FG |
18 | cranelift-codegen = { version = "0.90.1", features = ["unwind", "all-arch"] } |
19 | cranelift-frontend = "0.90.1" | |
20 | cranelift-module = "0.90.1" | |
21 | cranelift-native = "0.90.1" | |
22 | cranelift-jit = { version = "0.90.1", optional = true } | |
23 | cranelift-object = "0.90.1" | |
17df50a5 | 24 | target-lexicon = "0.12.0" |
5e7ed085 | 25 | gimli = { version = "0.26.0", default-features = false, features = ["write"]} |
f2b60f7d | 26 | object = { version = "0.29.0", default-features = false, features = ["std", "read_core", "write", "archive", "coff", "elf", "macho", "pe"] } |
29967ef6 | 27 | |
923072b8 | 28 | indexmap = "1.9.1" |
2b03887a | 29 | libloading = { version = "0.7.3", optional = true } |
5e7ed085 | 30 | once_cell = "1.10.0" |
064997fb | 31 | smallvec = "1.8.1" |
29967ef6 | 32 | |
a2a8927a | 33 | [patch.crates-io] |
29967ef6 | 34 | # Uncomment to use local checkout of cranelift |
29967ef6 XL |
35 | #cranelift-codegen = { path = "../wasmtime/cranelift/codegen" } |
36 | #cranelift-frontend = { path = "../wasmtime/cranelift/frontend" } | |
37 | #cranelift-module = { path = "../wasmtime/cranelift/module" } | |
17df50a5 | 38 | #cranelift-native = { path = "../wasmtime/cranelift/native" } |
5869c6ff | 39 | #cranelift-jit = { path = "../wasmtime/cranelift/jit" } |
29967ef6 XL |
40 | #cranelift-object = { path = "../wasmtime/cranelift/object" } |
41 | ||
29967ef6 XL |
42 | #gimli = { path = "../" } |
43 | ||
44 | [features] | |
94222f64 XL |
45 | # Enable features not ready to be enabled when compiling as part of rustc |
46 | unstable-features = ["jit", "inline_asm"] | |
5869c6ff | 47 | jit = ["cranelift-jit", "libloading"] |
29967ef6 | 48 | inline_asm = [] |
9c376795 | 49 | __check_build_system_using_ra = [] |
29967ef6 | 50 | |
cdc7bbd5 XL |
51 | [package.metadata.rust-analyzer] |
52 | rustc_private = true |