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