Cargo Features

[dependencies]
wasmer-compiler-cranelift-near = { version = "1.0.1", default-features = false, features = ["std", "unwind", "enable-serde", "core", "experimental-x64"] }
default = enable-serde, std, unwind

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

std default

Enables wasmer-types-near ^1.0.1 and std of cranelift-codegen ^0.68, cranelift-frontend ^0.68, and wasmer-compiler-near ^1.0.1

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.

unwind default = gimli

Enables unwind of cranelift-codegen ^0.68

cranelift-codegen:

This enables unwind info generation functionality.

enable-serde default

Enables enable-serde of wasmer-compiler-near ^1.0.1 and wasmer-types-near ^1.0.1

core = hashbrown

Enables core of cranelift-codegen ^0.68 and cranelift-frontend ^0.68

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.

experimental-x64

Enable Cranelift experimental x64 backend

Enables x64 of cranelift-codegen ^0.68

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.

hashbrown core?

Enables hashbrown ^0.9

gimli unwind

Enables gimli ^0.22