Cargo Features

[dependencies]
ink = { version = "6.0.0-beta.1", default-features = false, features = ["std", "ink-debug", "show-codegen-docs", "no-allocator", "no-panic-handler", "unstable-hostfn", "xcm"] }
default = std

The std feature is set by default whenever ink is added without default-features = false somewhere in the dependency tree.

std default

Enables linkme, std of derive_more, ink_env, ink_macro, ink_metadata, ink_prelude, ink_primitives, and ink_storage, std of parity-scale-codec, scale-info, and optional staging-xcm ^18.0.0

Affects ink::CONTRACT_EVENTS, ink::collect_events, ink::CONTRACT_EVENTS_SOL, ink::collect_events_sol, ink::CONTRACT_ERRORS_SOL, ink::collect_errors_sol

ink-debug

Enable contract debug messages via debug_print! and debug_println!.

Enables ink-debug of ink_env

show-codegen-docs
no-allocator

Disable the ink! provided global memory allocator.

Enables no-allocator of ink_env

no-panic-handler

Disable the ink! provided panic handler.

Enables no-panic-handler of ink_env

unstable-hostfn

Enables unstable-hostfn of ink_env

xcm

Enable xcm utilities.

Enables xcm of ink_env and sp-io ^42.0.0, sp-runtime-interface ^31.0.0, and staging-xcm ^18.0.0

sp-runtime-interface:

required for overwriting child dependency features of pallet-xcm

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.

ink_metadata std
scale-info std