Cargo Features
[dependencies]
ink_env = { version = "6.0.0-alpha", default-features = false, features = ["std", "ink-debug", "no-allocator", "no-panic-handler", "unstable-hostfn"] }
- 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.14.0, optional scale-encode ^0.8.0, scale-info, sp-io, sp-runtime-interface, and staging-xcm
Affects
api::return_value
,backend::EnvBackend.return_value
… - 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.
- unstable-hostfn
-
Affects
api::account_id
,api::minimum_balance
,api::take_contract_storage
,api::contains_contract_storage
,api::clear_contract_storage
,api::instantiate_contract
,api::terminate_contract
,api::ecdsa_to_eth_address
,api::sr25519_verify
,api::is_contract
,api::own_code_hash
,api::caller_is_origin
,api::caller_is_root
,api::set_code_hash
,api::call_runtime
,api::xcm_execute
,backend::EnvBackend.take_contract_storage
,backend::EnvBackend.contains_contract_storage
,backend::EnvBackend.clear_contract_storage
,backend::EnvBackend.ecdsa_to_eth_address
…
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 riscv64 std
- ink_engine not riscv64 std
- scale-decode not riscv64 std
-
Enables scale-decode ^0.14.0
- scale-encode not riscv64 std
-
Enables scale-encode ^0.8.0
- scale-info not riscv64 std
- schnorrkel not riscv64 std
- secp256k1 not riscv64 std
-
Enables secp256k1 ^0.30.0
- sha2 not riscv64 std
- sha3 not riscv64 std