]> git.lizzy.rs Git - rust.git/blob - Cargo.toml
Bump libloading from 0.5.2 to 0.6.0 (#957)
[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/" }
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"
17
18 ar = "0.8.0"
19 byteorder = "1.2.7"
20 indexmap = "1.0.2"
21
22 [dependencies.object]
23 version = "0.18.0"
24 default-features = false
25 features = ["read", "std", "write"] # We don't need WASM support
26
27 [dependencies.gimli]
28 version = "0.20.0"
29 default-features = false
30 features = ["write"] # We don't need read support
31
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" }
39
40 #[patch.crates-io]
41 #gimli = { path = "../" }
42
43 [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
44 cranelift-simplejit = { git = "https://github.com/bytecodealliance/wasmtime/" }
45 libloading = "0.6.0"
46
47 [profile.dev]
48 # By compiling dependencies with optimizations, performing tests gets much faster.
49 opt-level = 3
50
51 [profile.dev.package.rustc_codegen_cranelift]
52 # Disabling optimizations for cg_clif itself makes compilation after a change faster.
53 opt-level = 0
54
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]
58 opt-level = 0
59 debug = false
60
61 [profile.release.build-override]
62 opt-level = 0
63 debug = false
64
65 [profile.dev.package.cranelift-codegen-meta]
66 opt-level = 0
67 debug = false
68
69 [profile.release.package.cranelift-codegen-meta]
70 opt-level = 0
71 debug = false
72
73 [profile.dev.package.syn]
74 opt-level = 0
75 debug = false
76
77 [profile.release.package.syn]
78 opt-level = 0
79 debug = false