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