]> git.proxmox.com Git - rustc.git/blob - compiler/rustc_codegen_cranelift/Cargo.toml
New upstream version 1.49.0~beta.4+dfsg1
[rustc.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"] }
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.11.0"
18 gimli = { version = "0.22.0", default-features = false, features = ["write"]}
19 object = { version = "0.21.1", default-features = false, features = ["std", "read_core", "write", "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
25 # Uncomment to use local checkout of cranelift
26 #[patch."https://github.com/bytecodealliance/wasmtime/"]
27 #cranelift-codegen = { path = "../wasmtime/cranelift/codegen" }
28 #cranelift-frontend = { path = "../wasmtime/cranelift/frontend" }
29 #cranelift-module = { path = "../wasmtime/cranelift/module" }
30 #cranelift-simplejit = { path = "../wasmtime/cranelift/simplejit" }
31 #cranelift-object = { path = "../wasmtime/cranelift/object" }
32
33 #[patch.crates-io]
34 #gimli = { path = "../" }
35
36 [features]
37 default = ["jit", "inline_asm"]
38 jit = ["cranelift-simplejit", "libloading"]
39 inline_asm = []
40
41 [profile.dev]
42 # By compiling dependencies with optimizations, performing tests gets much faster.
43 opt-level = 3
44
45 [profile.dev.package.rustc_codegen_cranelift]
46 # Disabling optimizations for cg_clif itself makes compilation after a change faster.
47 opt-level = 0
48
49 [profile.release.package.rustc_codegen_cranelift]
50 incremental = true
51
52 # Disable optimizations and debuginfo of build scripts and some of the heavy build deps, as the
53 # execution time of build scripts is so fast that optimizing them slows down the total build time.
54 [profile.dev.build-override]
55 opt-level = 0
56 debug = false
57
58 [profile.release.build-override]
59 opt-level = 0
60 debug = false
61
62 [profile.dev.package.cranelift-codegen-meta]
63 opt-level = 0
64 debug = false
65
66 [profile.release.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.release.package.syn]
75 opt-level = 0
76 debug = false