]> git.lizzy.rs Git - rust.git/blob - Cargo.toml
Disable long running libcore tests
[rust.git] / Cargo.toml
1 [package]
2 name = "rustc_codegen_cranelift"
3 version = "0.1.0"
4 edition = "2021"
5
6 [lib]
7 crate-type = ["dylib"]
8
9 [dependencies]
10 # These have to be in sync with each other
11 cranelift-codegen = { version = "0.78.0", features = ["unwind", "all-arch"] }
12 cranelift-frontend = "0.78.0"
13 cranelift-module = "0.78.0"
14 cranelift-native = "0.78.0"
15 cranelift-jit = { version = "0.78.0", optional = true }
16 cranelift-object = "0.78.0"
17 target-lexicon = "0.12.0"
18 gimli = { version = "0.25.0", default-features = false, features = ["write"]}
19 object = { version = "0.27.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.git"]
28 #cranelift-codegen = { path = "../wasmtime/cranelift/codegen" }
29 #cranelift-frontend = { path = "../wasmtime/cranelift/frontend" }
30 #cranelift-module = { path = "../wasmtime/cranelift/module" }
31 #cranelift-native = { path = "../wasmtime/cranelift/native" }
32 #cranelift-jit = { path = "../wasmtime/cranelift/jit" }
33 #cranelift-object = { path = "../wasmtime/cranelift/object" }
34
35 #[patch.crates-io]
36 #gimli = { path = "../" }
37
38 [features]
39 # Enable features not ready to be enabled when compiling as part of rustc
40 unstable-features = ["jit", "inline_asm"]
41 jit = ["cranelift-jit", "libloading"]
42 inline_asm = []
43
44 [profile.dev]
45 # By compiling dependencies with optimizations, performing tests gets much faster.
46 opt-level = 3
47
48 [profile.dev.package.rustc_codegen_cranelift]
49 # Disabling optimizations for cg_clif itself makes compilation after a change faster.
50 opt-level = 0
51
52 [profile.release.package.rustc_codegen_cranelift]
53 incremental = 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]
58 opt-level = 0
59 debug = false
60
61 [profile.release.build-override]
62 opt-level = 0
63 debug = false
64
65 [profile.dev.package.cranelift-codegen-meta]
66 opt-level = 0
67 debug = false
68
69 [profile.release.package.cranelift-codegen-meta]
70 opt-level = 0
71 debug = false
72
73 [package.metadata.rust-analyzer]
74 rustc_private = true