Cargo Features
[dependencies]
ink_env = { version = "5.0.0", default-features = false, features = ["std", "ink-debug", "no-allocator"] }
- 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 ink_allocator, ink_engine, ink_prelude, ink_primitives, ink_storage_traits, num-traits, parity-scale-codec, and scale-info
- 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
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.10.0
- scale-encode not wasm32 std
-
Enables scale-encode ^0.5.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