]> git.lizzy.rs Git - rust.git/blob - Cargo.toml
Make it possible it use value_field for SIMD values stored ByVal
[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 gimli = "0.19.0"
29 indexmap = "1.0.2"
30 libloading = "0.5.1"
31
32 [dependencies.object]
33 version = "0.16.0"
34 default-features = false
35 features = ["compression", "read", "std"] # We don't need WASM support
36
37 # Uncomment to use local checkout of cranelift
38 #[patch."https://github.com/bytecodealliance/cranelift/"]
39 #cranelift-codegen = { path = "../cranelift/cranelift-codegen", default-features = false, features = ["std"] }
40 #cranelift-frontend = { path = "../cranelift/cranelift-frontend", default-features = false, features = ["std"] }
41 #cranelift-module = { path = "../cranelift/cranelift-module" }
42 #cranelift-simplejit = { path = "../cranelift/cranelift-simplejit" }
43 #cranelift-faerie = { path = "../cranelift/cranelift-faerie" }
44 #cranelift-object = { path = "../cranelift/cranelift-object" }
45
46 #[patch.crates-io]
47 #gimli = { path = "../" }
48
49 [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
50 cranelift-simplejit = { git = "https://github.com/bytecodealliance/cranelift/" }
51
52 [profile.dev]
53 # By compiling dependencies with optimizations, performing tests gets much faster.
54 opt-level = 3
55
56 [profile.dev.package.rustc_codegen_cranelift]
57 # Disabling optimizations for cg_clif itself makes compilation after a change faster.
58 opt-level = 0
59
60 # Disable optimizations and debuginfo of build scripts and some of the heavy build deps, as the
61 # execution time of build scripts is so fast that optimizing them slows down the total build time.
62 [profile.dev.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.dev.package.syn]
71 opt-level = 0
72 debug = false
73
74 [profile.dev.package.synstructure]
75 opt-level = 0
76 debug = false