ckb-std 0.7.1

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
use std::env;

fn main() {
    let target_arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap();
    // ckb-std only supports riscv64 target arch
    // but we can still use cargo check under other archs
    if target_arch == "riscv64" {
        cc::Build::new()
            .file("src/asm/syscall.S")
            .compile("ckb-syscall");
    }
}