]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_codegen_cranelift/Cargo.toml
Merge remote-tracking branch 'upstream/master' into impl-16351-nightly
[rust.git] / compiler / rustc_codegen_cranelift / 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", "x64"] }
13 cranelift-frontend = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main" }
14 cranelift-module = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main" }
15 cranelift-jit = { 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.11.0"
18 gimli = { version = "0.23.0", default-features = false, features = ["write"]}
19 object = { version = "0.23.0", default-features = false, features = ["std", "read_core", "write", "archive", "coff", "elf", "macho", "pe"] }
20
21 ar = { git = "https://github.com/bjorn3/rust-ar.git", branch = "do_not_remove_cg_clif_ranlib" }
22 indexmap = "1.0.2"
23 libloading = { version = "0.6.0", optional = true }
24 smallvec = "1.6.1"
25
26 # Uncomment to use local checkout of cranelift
27 #[patch."https://github.com/bytecodealliance/wasmtime/"]
28 #cranelift-codegen = { path = "../wasmtime/cranelift/codegen" }
29 #cranelift-frontend = { path = "../wasmtime/cranelift/frontend" }
30 #cranelift-module = { path = "../wasmtime/cranelift/module" }
31 #cranelift-jit = { path = "../wasmtime/cranelift/jit" }
32 #cranelift-object = { path = "../wasmtime/cranelift/object" }
33
34 #[patch.crates-io]
35 #gimli = { path = "../" }
36
37 [features]
38 default = ["jit", "inline_asm"]
39 jit = ["cranelift-jit", "libloading"]
40 inline_asm = []
41
42 [profile.dev]
43 # By compiling dependencies with optimizations, performing tests gets much faster.
44 opt-level = 3
45
46 [profile.dev.package.rustc_codegen_cranelift]
47 # Disabling optimizations for cg_clif itself makes compilation after a change faster.
48 opt-level = 0
49
50 [profile.release.package.rustc_codegen_cranelift]
51 incremental = true
52
53 # Disable optimizations and debuginfo of build scripts and some of the heavy build deps, as the
54 # execution time of build scripts is so fast that optimizing them slows down the total build time.
55 [profile.dev.build-override]
56 opt-level = 0
57 debug = false
58
59 [profile.release.build-override]
60 opt-level = 0
61 debug = false
62
63 [profile.dev.package.cranelift-codegen-meta]
64 opt-level = 0
65 debug = false
66
67 [profile.release.package.cranelift-codegen-meta]
68 opt-level = 0
69 debug = false
70
71 [profile.dev.package.syn]
72 opt-level = 0
73 debug = false
74
75 [profile.release.package.syn]
76 opt-level = 0
77 debug = false
78
79 [package.metadata.rust-analyzer]
80 rustc_private = true