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 wheneverink
is added without
somewhere in the dependency tree.default-features = false - 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!
anddebug_println!
. - 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.