Cargo Features

[dependencies]
solang = { version = "0.3.2", default-features = false, features = ["llvm", "wasm_opt"] }
default = llvm, wasm_opt

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

llvm default wasm_opt = inkwell, libc

Affects solang::emit, solang::compile

wasm_opt default = contract-build, llvm, wasm-opt

Affects cli::Optimizations.wasm_opt_passes, codegen::Options.wasm_opt

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.

inkwell llvm

Enables inkwell ^0.2.0

libc llvm
wasm-opt wasm_opt

Enables wasm-opt ^0.112.0

contract-build wasm_opt

Enables contract-build ^3.0.1