Cargo Features

[dependencies]
scrypto-test = { version = "1.3.0", default-features = false, features = ["std", "alloc", "moka", "lru", "resource_tracker", "rocksdb", "post_run_db_check", "coverage"] }
default = std

The std feature is set by default whenever scrypto-test is added without default-features = false somewhere in the dependency tree.

std default = moka

Enables std of scrypto and scrypto-compiler

scrypto:

Included to re-export some useful things into the scrypto-test prelude

and std of radix-common, radix-engine, radix-engine-interface, radix-native-sdk, radix-substate-store-impls, radix-substate-store-interface, radix-substate-store-queries, radix-transactions, and sbor

sbor:

The Radix Engine Stack

alloc = lru

Enables alloc of radix-common, radix-engine, radix-engine-interface, radix-native-sdk, radix-substate-store-impls, radix-substate-store-interface, radix-substate-store-queries, radix-transactions, sbor, scrypto, and scrypto-compiler

moka std

Enables moka of radix-engine

radix-engine:

Two features for the two possible libraries to use for caching. Moka is not WASM friendly while LRU is. One of these two features must be enabled.

lru alloc?

Enables lru of radix-engine

resource_tracker

Enables resource_tracker of radix-common and radix-engine

rocksdb

Enables rocksdb of radix-substate-store-impls

post_run_db_check
coverage

Enables coverage of radix-common and radix-engine

radix-engine:

This flag disables package size limit, memory size limit and fee limit