]> git.lizzy.rs Git - rust.git/blob - Cargo.toml
0a0172429f38a2b49de98019863ab80005cd4110
[rust.git] / Cargo.toml
1 [package]
2 name = "rustc_codegen_cranelift"
3 version = "0.1.0"
4 authors = ["bjorn3 <bjorn3@users.noreply.github.com>"]
5 edition = "2018"
6
7 [lib]
8 crate-type = ["dylib"]
9
10 [dependencies]
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-object = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main" }
16 target-lexicon = "0.10.0"
17
18 ar = "0.8.0"
19 byteorder = "1.2.7"
20 indexmap = "1.0.2"
21 cfg-if = "0.1.10"
22
23 [dependencies.object]
24 version = "0.20.0"
25 default-features = false
26 features = ["read", "std", "write"] # We don't need WASM support
27
28 [dependencies.gimli]
29 version = "0.21.0"
30 default-features = false
31 features = ["write"] # We don't need read support
32
33 # Uncomment to use local checkout of cranelift
34 #[patch."https://github.com/bytecodealliance/wasmtime/"]
35 #cranelift-codegen = { path = "../wasmtime/cranelift/codegen" }
36 #cranelift-frontend = { path = "../wasmtime/cranelift/frontend" }
37 #cranelift-module = { path = "../wasmtime/cranelift/module" }
38 #cranelift-simplejit = { path = "../wasmtime/cranelift/simplejit" }
39 #cranelift-object = { path = "../wasmtime/cranelift/object" }
40
41 #[patch.crates-io]
42 #gimli = { path = "../" }
43
44 [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
45 cranelift-simplejit = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main" }
46 libloading = "0.6.0"
47
48 [profile.dev]
49 # By compiling dependencies with optimizations, performing tests gets much faster.
50 opt-level = 3
51
52 [profile.dev.package.rustc_codegen_cranelift]
53 # Disabling optimizations for cg_clif itself makes compilation after a change faster.
54 opt-level = 0
55
56 # Disable optimizations and debuginfo of build scripts and some of the heavy build deps, as the
57 # execution time of build scripts is so fast that optimizing them slows down the total build time.
58 [profile.dev.build-override]
59 opt-level = 0
60 debug = false
61
62 [profile.release.build-override]
63 opt-level = 0
64 debug = false
65
66 [profile.dev.package.cranelift-codegen-meta]
67 opt-level = 0
68 debug = false
69
70 [profile.release.package.cranelift-codegen-meta]
71 opt-level = 0
72 debug = false
73
74 [profile.dev.package.syn]
75 opt-level = 0
76 debug = false
77
78 [profile.release.package.syn]
79 opt-level = 0
80 debug = false