Cargo Features

[dependencies]
unc-sdk = { version = "0.7.4", default-features = false, features = ["expensive-debug", "unstable", "legacy", "abi", "unit-testing", "wee_alloc"] }
default = wee_alloc

The wee_alloc feature is set by default whenever unc-sdk is added without default-features = false somewhere in the dependency tree.

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 ^0.1.0, unc-sdk-macros, and unc-token ^0.4.0

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?

Enables unc-abi ^0.1.0

schemars not wasm32 abi?
unc-crypto not wasm32 unit-testing?

Enables unc-crypto ^0.7.3

unc-parameters not wasm32 unit-testing?

Enables unc-parameters ^0.7.3

unc-primitives not wasm32 unit-testing?

Enables unc-primitives ^0.7.3

unc-primitives-core not wasm32 unit-testing?

Enables unc-primitives-core ^0.7.3

unc-vm-runner not wasm32 unit-testing?

Enables unc-vm-runner ^0.7.3

wee_alloc wasm32 default