disable cranelift in rust global config

This commit is contained in:
janis 2026-07-26 15:56:10 +02:00
parent a6f6cc6e79
commit ed7bc4c570
Signed by: janis
SSH key fingerprint: SHA256:bB1qbbqmDXZNT0KKD5c2Dfjg53JGhj7B3CFcLIzSqq8

View file

@ -3,28 +3,28 @@
# ];
home.file.".cargo/config.toml".text = ''
[unstable]
codegen-backend = true
# [unstable]
# codegen-backend = true
[profile.dev]
codegen-backend = "cranelift"
[profile.dev.package."*"]
codegen-backend = "llvm"
# Consider compiling deps with cranelift if you want cold-compilation to be faster
# [profile.dev]
# codegen-backend = "cranelift"
# cranelift is `panic = abort`, so you need to compile with llvm to get `#[should_panic]` working
[profile.test.package."*"]
codegen-backend = "llvm"
# [profile.dev.package."*"]
# codegen-backend = "llvm"
# # Consider compiling deps with cranelift if you want cold-compilation to be faster
# # codegen-backend = "cranelift"
# Disable cranelift for release profile
[profile.release]
codegen-backend = "llvm"
# # cranelift is `panic = abort`, so you need to compile with llvm to get `#[should_panic]` working
# [profile.test.package."*"]
# codegen-backend = "llvm"
# cranelift cannot build wasm32-unknown-unknown out of the box
[profile.web]
codegen-backend = "llvm"
# # Disable cranelift for release profile
# [profile.release]
# codegen-backend = "llvm"
# # cranelift cannot build wasm32-unknown-unknown out of the box
# [profile.web]
# codegen-backend = "llvm"
[build]
# Using a global target dir allows all projects to share incremental compilation results,