Cargo Features
[dependencies]
ink_env = { version = "5.1.1", default-features = false, features = ["std", "ink-debug", "no-allocator", "no-panic-handler"] }
- default = std
-
The
std
feature is set by default wheneverink_env
is added without
somewhere in the dependency tree.default-features = false - std default = blake2, scale-decode, scale-encode, schnorrkel, secp256k1, sha2, sha3
-
Enables std of derive_more, ink_allocator, ink_engine, ink_prelude, ink_primitives, ink_storage_traits, num-traits, parity-scale-codec, optional scale-decode ^0.11.1, optional scale-encode ^0.6.0, scale-info, and staging-xcm ^11.0.0
- ink-debug
-
Enable contract debug messages via
debug_print!
anddebug_println!
. - no-allocator
-
Disable the ink! provided global memory allocator.
Enables no-allocator of ink_allocator
- no-panic-handler
-
Disable the ink! provided panic handler.
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.
- blake2 not wasm32 std
- ink_engine not wasm32 std
- scale-decode not wasm32 std
-
Enables scale-decode ^0.11.1
- scale-encode not wasm32 std
-
Enables scale-encode ^0.6.0
- scale-info not wasm32 std
- schnorrkel not wasm32 std
- secp256k1 not wasm32 std
-
Enables secp256k1 ^0.28.2
- sha2 not wasm32 std
- sha3 not wasm32 std