1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//! ckb-std
//!
//! # Modules
//!
//! * `high_level` module: defines high level syscall API
//! * `syscalls` module: defines low level [CKB syscalls](https://github.com/nervosnetwork/rfcs/blob/master/rfcs/0009-vm-syscalls/0009-vm-syscalls.md)
//! * `debug!` macro: a `println!` like macro helps debugging
//! * `entry!` macro: defines contract entry point
//! * `default_alloc!` and `libc_alloc!` macro: defines global allocator for no-std rust

#![no_std]
#![feature(llvm_asm)]

extern crate alloc;

pub mod ckb_constants;
pub mod debug;
pub mod entry;
pub mod error;
pub mod global_alloc_macro;
pub mod since;
pub mod syscalls;
pub use ckb_allocator;
#[cfg(feature = "ckb-types")]
pub mod high_level;
#[cfg(feature = "ckb-types")]
pub use ckb_types;
pub mod dynamic_loading;