]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_codegen_cranelift/Cargo.toml
Merge branch 'debian/sid' into debian/experimental
[rustc.git] / compiler / rustc_codegen_cranelift / Cargo.toml
CommitLineData
29967ef6
XL
1[package]
2name = "rustc_codegen_cranelift"
3version = "0.1.0"
4authors = ["bjorn3 <bjorn3@users.noreply.github.com>"]
5edition = "2018"
6
7[lib]
8crate-type = ["dylib"]
9
10[dependencies]
11# These have to be in sync with each other
17df50a5
XL
12cranelift-codegen = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "main", features = ["unwind"] }
13cranelift-frontend = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "main" }
14cranelift-module = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "main" }
15cranelift-native = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "main" }
16cranelift-jit = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "main", optional = true }
17cranelift-object = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "main" }
18target-lexicon = "0.12.0"
19gimli = { version = "0.24.0", default-features = false, features = ["write"]}
20object = { version = "0.24.0", default-features = false, features = ["std", "read_core", "write", "archive", "coff", "elf", "macho", "pe"] }
29967ef6
XL
21
22ar = { git = "https://github.com/bjorn3/rust-ar.git", branch = "do_not_remove_cg_clif_ranlib" }
23indexmap = "1.0.2"
24libloading = { version = "0.6.0", optional = true }
5869c6ff 25smallvec = "1.6.1"
29967ef6
XL
26
27# Uncomment to use local checkout of cranelift
17df50a5 28#[patch."https://github.com/bytecodealliance/wasmtime.git"]
29967ef6
XL
29#cranelift-codegen = { path = "../wasmtime/cranelift/codegen" }
30#cranelift-frontend = { path = "../wasmtime/cranelift/frontend" }
31#cranelift-module = { path = "../wasmtime/cranelift/module" }
17df50a5 32#cranelift-native = { path = "../wasmtime/cranelift/native" }
5869c6ff 33#cranelift-jit = { path = "../wasmtime/cranelift/jit" }
29967ef6
XL
34#cranelift-object = { path = "../wasmtime/cranelift/object" }
35
36#[patch.crates-io]
37#gimli = { path = "../" }
38
39[features]
40default = ["jit", "inline_asm"]
5869c6ff 41jit = ["cranelift-jit", "libloading"]
29967ef6
XL
42inline_asm = []
43
44[profile.dev]
45# By compiling dependencies with optimizations, performing tests gets much faster.
46opt-level = 3
47
48[profile.dev.package.rustc_codegen_cranelift]
49# Disabling optimizations for cg_clif itself makes compilation after a change faster.
50opt-level = 0
51
52[profile.release.package.rustc_codegen_cranelift]
53incremental = true
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]
58opt-level = 0
59debug = false
60
61[profile.release.build-override]
62opt-level = 0
63debug = false
64
65[profile.dev.package.cranelift-codegen-meta]
66opt-level = 0
67debug = false
68
69[profile.release.package.cranelift-codegen-meta]
70opt-level = 0
71debug = false
72
cdc7bbd5
XL
73[package.metadata.rust-analyzer]
74rustc_private = true