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/" }
13 cranelift-frontend = { git = "https://github.com/bytecodealliance/wasmtime/" }
14 cranelift-module = { git = "https://github.com/bytecodealliance/wasmtime/" }
15 cranelift-object = { git = "https://github.com/bytecodealliance/wasmtime/" }
16 target-lexicon = "0.10.0"
24 default-features = false
25 features = ["read", "std", "write"] # We don't need WASM support
29 default-features = false
30 features = ["write"] # We don't need read support
32 # Uncomment to use local checkout of cranelift
33 #[patch."https://github.com/bytecodealliance/wasmtime/"]
34 #cranelift-codegen = { path = "../wasmtime/cranelift/codegen" }
35 #cranelift-frontend = { path = "../wasmtime/cranelift/frontend" }
36 #cranelift-module = { path = "../wasmtime/cranelift/module" }
37 #cranelift-simplejit = { path = "../wasmtime/cranelift/simplejit" }
38 #cranelift-object = { path = "../wasmtime/cranelift/object" }
41 #gimli = { path = "../" }
43 [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
44 cranelift-simplejit = { git = "https://github.com/bytecodealliance/wasmtime/" }
48 # By compiling dependencies with optimizations, performing tests gets much faster.
51 [profile.dev.package.rustc_codegen_cranelift]
52 # Disabling optimizations for cg_clif itself makes compilation after a change faster.
55 # Disable optimizations and debuginfo of build scripts and some of the heavy build deps, as the
56 # execution time of build scripts is so fast that optimizing them slows down the total build time.
57 [profile.dev.build-override]
61 [profile.release.build-override]
65 [profile.dev.package.cranelift-codegen-meta]
69 [profile.release.package.cranelift-codegen-meta]
73 [profile.dev.package.syn]
77 [profile.release.package.syn]