Cargo Features
[dependencies]
unc-sdk = { version = "2.3.2", default-features = false, features = ["expensive-debug", "unstable", "legacy", "abi", "unit-testing", "wee_alloc"] }
- default = wee_alloc
-
The
wee_alloc
feature is set by default wheneverunc-sdk
is added without
somewhere in the dependency tree.default-features = false - expensive-debug
- unstable
-
Affects
env::ecrecover
,store::tree_map
… - legacy
-
Affects
unc-sdk::collections
… - abi = schemars, unc-abi
-
Enables unstable__schema of borsh, abi of unc-account-id, unc-gas, unc-sdk-macros, and unc-token
- unit-testing = unc-crypto, unc-parameters, unc-primitives, unc-primitives-core, unc-vm-runner
-
Affects
env::set_blockchain_interface
,environment::mock
,unc-sdk::test_utils
,primitives::MerkleHash
…
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.
- unc-abi not wasm32 abi?
- schemars not wasm32 abi?
- unc-crypto not wasm32 unit-testing?
-
Enables unc-crypto ^0.10.2
- unc-parameters not wasm32 unit-testing?
-
Enables unc-parameters ^0.10.2
- unc-primitives not wasm32 unit-testing?
-
Enables unc-primitives ^0.10.2
- unc-primitives-core not wasm32 unit-testing?
-
Enables unc-primitives-core ^0.10.2
- unc-vm-runner not wasm32 unit-testing?
-
Enables unc-vm-runner ^0.10.2
- wee_alloc wasm32 default