Cargo Features

[dependencies]
cxc = { version = "0.3.1", default-features = false, features = ["backend-debug", "backend-llvm", "backend-cranelift", "backend-interpreter", "ffi-assertions", "show-bytes", "bytemuck"] }
default = backend-cranelift, ffi-assertions

These default features are set whenever cxc is added without default-features = false somewhere in the dependency tree.

xc-debug mir-debug backend-debug
backend-llvm = inkwell, llvm-sys
backend-cranelift default = cranelift, cranelift-jit, cranelift-module, cranelift-native
backend-interpreter = libc, region
ffi-assertions default = region
show-bytes

Affects cxc::bytesof

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

llvm-sys backend-llvm?

Enables llvm-sys ^150

inkwell backend-llvm?

Enables inkwell ^0.2

cranelift backend-cranelift

Enables cranelift ^0.101.3

cranelift-jit backend-cranelift

Enables cranelift-jit ^0.101.3

cranelift-module backend-cranelift

Enables cranelift-module ^0.101.3

cranelift-native backend-cranelift

Enables cranelift-native ^0.101.3

bytemuck implicit feature

Enables bytemuck

bytemuck:

A crate for mucking around with piles of bytes

region backend-interpreter? ffi-assertions
libc backend-interpreter?