[][src]Crate compiled_stdlib

Modules

transaction_scripts

Rust representation of a Move transaction script that can be executed on the Libra blockchain. Libra does not allow arbitrary transaction scripts; only scripts whose hashes are present in the on-chain script allowlist. The genesis allowlist is derived from this file, and the Stdlib script enum will be modified to reflect changes in the on-chain allowlist as time goes on.

Enums

StdLibOptions

An enum specifying whether the compiled stdlib/scripts should be used or freshly built versions should be used.

Constants

COMPILED_STDLIB_DIR

The compiled library needs to be included in the Rust binary due to Docker deployment issues. This is why we include it here.

ERROR_DESCRIPTIONS
NO_USE_COMPILED

Functions

env_stdlib_modules

Returns a reference to the standard library built by move-lang compiler, compiled with the default address.

stdlib_modules

Returns a reference to the standard library. Depending upon the option flag passed in either a compiled version of the standard library will be returned or a new freshly built stdlib will be used.

use_compiled

A predicate detailing whether the compiled versions of scripts and the stdlib should be used or not. The default is that the compiled versions of the stdlib and transaction scripts should be used.