ckb-std 0.1.1

This library contains serveral modules help you write CKB contract with Rust
Documentation

ckb-std

Crates.io

This library contains serveral modules that could help you write CKB contract with Rust.

Usage

  • syscalls module: defines CKB syscalls functions
  • debug! macro: a println! like macro helps debugging
  • entry! macro: defines contract entry point
  • default_alloc! and libc_alloc! macro: defines global allocator

To use libc global allocator, you must static link libc into the binary, and enable libc feature in this crate.

Check examples, docs and this tutorial to learn how to use.

See also ckb-tool which helps you write tests.