2 name = "rustc_codegen_cranelift"
10 # These have to be in sync with each other
11 cranelift-codegen = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "main", features = ["unwind", "all-arch"] }
12 cranelift-frontend = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "main" }
13 cranelift-module = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "main" }
14 cranelift-native = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "main" }
15 cranelift-jit = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "main", optional = true }
16 cranelift-object = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "main" }
17 target-lexicon = "0.12.0"
18 gimli = { version = "0.24.0", default-features = false, features = ["write"]}
19 object = { version = "0.25.0", default-features = false, features = ["std", "read_core", "write", "archive", "coff", "elf", "macho", "pe"] }
21 ar = { git = "https://github.com/bjorn3/rust-ar.git", branch = "do_not_remove_cg_clif_ranlib" }
23 libloading = { version = "0.6.0", optional = true }
26 # Uncomment to use local checkout of cranelift
27 #[patch."https://github.com/bytecodealliance/wasmtime.git"]
28 #cranelift-codegen = { path = "../wasmtime/cranelift/codegen" }
29 #cranelift-frontend = { path = "../wasmtime/cranelift/frontend" }
30 #cranelift-module = { path = "../wasmtime/cranelift/module" }
31 #cranelift-native = { path = "../wasmtime/cranelift/native" }
32 #cranelift-jit = { path = "../wasmtime/cranelift/jit" }
33 #cranelift-object = { path = "../wasmtime/cranelift/object" }
36 #gimli = { path = "../" }
39 default = ["jit", "inline_asm"]
40 jit = ["cranelift-jit", "libloading"]
44 # By compiling dependencies with optimizations, performing tests gets much faster.
47 [profile.dev.package.rustc_codegen_cranelift]
48 # Disabling optimizations for cg_clif itself makes compilation after a change faster.
51 [profile.release.package.rustc_codegen_cranelift]
54 # Disable optimizations and debuginfo of build scripts and some of the heavy build deps, as the
55 # execution time of build scripts is so fast that optimizing them slows down the total build time.
56 [profile.dev.build-override]
60 [profile.release.build-override]
64 [profile.dev.package.cranelift-codegen-meta]
68 [profile.release.package.cranelift-codegen-meta]
72 [package.metadata.rust-analyzer]