ckb-std 0.17.2

This library contains serveral modules help you write CKB contract with Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![no_std]
#![no_main]

use ckb_std::type_id::check_type_id;
use ckb_std::{default_alloc, entry};

entry!(main);
default_alloc!();

fn main() -> i8 {
    match check_type_id(0) {
        Ok(_) => 0,
        Err(_) => -10,
    }
}