Cargo Features

[dependencies]
ink = { version = "5.1.0", default-features = false, features = ["std", "ink-debug", "show-codegen-docs", "no-allocator", "no-panic-handler"] }
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 std of derive_more, ink_env, ink_macro, ink_metadata, ink_prelude, ink_primitives, ink_storage, parity-scale-codec, scale-info, and staging-xcm ^11.0.0

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

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