]> git.lizzy.rs Git - rust.git/blob - Cargo.toml
Update to Cranelift 0.92
[rust.git] / 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 cranelift-native = { version = "0.92" }
22 cranelift-jit = { version = "0.92", optional = true }
23 cranelift-object = { version = "0.92" }
24 target-lexicon = "0.12.0"
25 gimli = { version = "0.26.0", default-features = false, features = ["write"]}
26 object = { version = "0.29.0", default-features = false, features = ["std", "read_core", "write", "archive", "coff", "elf", "macho", "pe"] }
27
28 indexmap = "1.9.1"
29 libloading = { version = "0.7.3", optional = true }
30 once_cell = "1.10.0"
31 smallvec = "1.8.1"
32
33 [patch.crates-io]
34 # Uncomment to use local checkout of cranelift
35 #cranelift-codegen = { path = "../wasmtime/cranelift/codegen" }
36 #cranelift-frontend = { path = "../wasmtime/cranelift/frontend" }
37 #cranelift-module = { path = "../wasmtime/cranelift/module" }
38 #cranelift-native = { path = "../wasmtime/cranelift/native" }
39 #cranelift-jit = { path = "../wasmtime/cranelift/jit" }
40 #cranelift-object = { path = "../wasmtime/cranelift/object" }
41
42 #gimli = { path = "../" }
43
44 [features]
45 # Enable features not ready to be enabled when compiling as part of rustc
46 unstable-features = ["jit", "inline_asm"]
47 jit = ["cranelift-jit", "libloading"]
48 inline_asm = []
49 __check_build_system_using_ra = []
50
51 [package.metadata.rust-analyzer]
52 rustc_private = true