Cargo Features

[dependencies]
ink = { version = "5.0.0", default-features = false, features = ["std", "ink-debug", "show-codegen-docs", "no-allocator"] }
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 ink_env, ink_macro, ink_metadata, ink_prelude, ink_primitives, ink_storage, parity-scale-codec, and scale-info

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

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