Cargo Features

[dependencies]
cranelift = { version = "0.113.0", default-features = false, features = ["std", "frontend", "interpreter", "jit", "module", "native", "object", "core"] }
default = frontend, std

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

std default

Enables std of optional cranelift-frontend and optional cranelift-module and cranelift-codegen

cranelift-codegen:

The "std" feature enables use of libstd. The "core" feature enables use of some minimal std-like replacement libraries. At least one of these two features need to be enabled.

frontend default

Enables cranelift-frontend

interpreter

Enables cranelift-interpreter

jit

Enables cranelift-jit

module

Enables cranelift-module

native

Enables cranelift-native

object

Enables cranelift-object

core

Enables core of cranelift-codegen, optional cranelift-frontend, and optional cranelift-module

cranelift-codegen:

The "core" feature used to enable a hashmap workaround, but is now deprecated (we (i) always use hashbrown, and (ii) don't support a no_std build anymore). The feature remains for backward compatibility as a no-op.

Cranelift has 9 features without comments.