]> git.lizzy.rs Git - rust.git/blob - Cargo.toml
Disable read feature of gimli
[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 [features]
11 default = ["backend_object"]
12 backend_object = ["object/write", "cranelift-object"]
13
14 [dependencies]
15 # These have to be in sync with each other
16 cranelift-codegen = { git = "https://github.com/bytecodealliance/cranelift/", default-features = false, features = ["std"] }
17 cranelift-frontend = { git = "https://github.com/bytecodealliance/cranelift/", default-features = false, features = ["std"] }
18 cranelift-module = { git = "https://github.com/bytecodealliance/cranelift/" }
19 cranelift-faerie = { git = "https://github.com/bytecodealliance/cranelift/" }
20 cranelift-object = { git = "https://github.com/bytecodealliance/cranelift/", optional = true }
21 target-lexicon = "0.9.0"
22 faerie = "0.12.0"
23
24 #goblin = "0.0.17"
25 ar = "0.8.0"
26 byteorder = "1.2.7"
27 libc = "0.2.53"
28 indexmap = "1.0.2"
29
30 [dependencies.object]
31 version = "0.16.0"
32 default-features = false
33 features = ["compression", "read", "std"] # We don't need WASM support
34
35 [dependencies.gimli]
36 version = "0.19.0"
37 default-features = false
38 features = ["write"] # We don't need read support
39
40 # Uncomment to use local checkout of cranelift
41 #[patch."https://github.com/bytecodealliance/cranelift/"]
42 #cranelift-codegen = { path = "../cranelift/cranelift-codegen", default-features = false, features = ["std"] }
43 #cranelift-frontend = { path = "../cranelift/cranelift-frontend", default-features = false, features = ["std"] }
44 #cranelift-module = { path = "../cranelift/cranelift-module" }
45 #cranelift-simplejit = { path = "../cranelift/cranelift-simplejit" }
46 #cranelift-faerie = { path = "../cranelift/cranelift-faerie" }
47 #cranelift-object = { path = "../cranelift/cranelift-object" }
48
49 #[patch.crates-io]
50 #gimli = { path = "../" }
51
52 [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
53 cranelift-simplejit = { git = "https://github.com/bytecodealliance/cranelift/" }
54 libloading = "0.5.1"
55
56 [profile.dev]
57 # By compiling dependencies with optimizations, performing tests gets much faster.
58 opt-level = 3
59
60 [profile.dev.package.rustc_codegen_cranelift]
61 # Disabling optimizations for cg_clif itself makes compilation after a change faster.
62 opt-level = 0
63
64 # Disable optimizations and debuginfo of build scripts and some of the heavy build deps, as the
65 # execution time of build scripts is so fast that optimizing them slows down the total build time.
66 [profile.dev.build-override]
67 opt-level = 0
68 debug = false
69
70 [profile.dev.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.dev.package.synstructure]
79 opt-level = 0
80 debug = false