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