TITLE: Running Tests for CKB Rust Contract (Shell) DESCRIPTION: This command executes the test suite for the CKB Rust contract. It typically compiles the contract and runs any defined unit or integration tests to ensure functionality and correctness. SOURCE: https://github.com/nervosnetwork/ckb-std/blob/master/test/README.md#_snippet_0 LANGUAGE: sh CODE: ``` make test ``` ---------------------------------------- TITLE: Customizing Default Memory Allocator in ckb-std (Rust) DESCRIPTION: This snippet demonstrates how to customize the `default_alloc!` macro in `ckb-std` to configure the memory heap sizes. It sets the fixed heap size to 4KB, dynamic heap size to 516KB, and minimum dynamic memory block size to 64B. Customizing these values can affect contract verification and runtime behavior, potentially leading to 'out of memory' errors if not tested thoroughly. SOURCE: https://github.com/nervosnetwork/ckb-std/blob/master/README.md#_snippet_0 LANGUAGE: Rust CODE: ``` default_alloc!(4 * 1024, 516 * 1024, 64) ```