2 name = "rustc_codegen_cranelift"
4 authors = ["bjorn3 <bjorn3@users.noreply.github.com>"]
11 # These have to be in sync with each other
12 cranelift-codegen = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main", features = ["unwind"] }
13 cranelift-frontend = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main" }
14 cranelift-module = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main" }
15 cranelift-simplejit = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main", optional = true }
16 cranelift-object = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main" }
17 target-lexicon = "0.10.0"
18 gimli = { version = "0.21.0", default-features = false, features = ["write"]}
19 object = { version = "0.20.0", default-features = false, features = ["read", "std", "write"] }
21 ar = { git = "https://github.com/bjorn3/rust-ar.git", branch = "do_not_remove_cg_clif_ranlib" }
25 libloading = { version = "0.6.0", optional = true }
27 # Uncomment to use local checkout of cranelift
28 #[patch."https://github.com/bytecodealliance/wasmtime/"]
29 #cranelift-codegen = { path = "../wasmtime/cranelift/codegen" }
30 #cranelift-frontend = { path = "../wasmtime/cranelift/frontend" }
31 #cranelift-module = { path = "../wasmtime/cranelift/module" }
32 #cranelift-simplejit = { path = "../wasmtime/cranelift/simplejit" }
33 #cranelift-object = { path = "../wasmtime/cranelift/object" }
36 #gimli = { path = "../" }
40 jit = ["cranelift-simplejit", "libloading"]
43 # By compiling dependencies with optimizations, performing tests gets much faster.
46 [profile.dev.package.rustc_codegen_cranelift]
47 # Disabling optimizations for cg_clif itself makes compilation after a change faster.
50 # Disable optimizations and debuginfo of build scripts and some of the heavy build deps, as the
51 # execution time of build scripts is so fast that optimizing them slows down the total build time.
52 [profile.dev.build-override]
56 [profile.release.build-override]
60 [profile.dev.package.cranelift-codegen-meta]
64 [profile.release.package.cranelift-codegen-meta]
68 [profile.dev.package.syn]
72 [profile.release.package.syn]