Skip to content

jjyr/ckb-vm-rust-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CKB VM Rust Demo

rust-contract shows how to build a minimal rust contract.

The contract is composited by a entry.c file and a rust static library that actually implement the contract, check Makefile to see how to build the contract.


I'm failed to directly build a Rust binary that works on ckb-vm, However if you succeed to build a binary please send me a PR or open an issue!

Usage

Add riscv target:

rustup target add riscv64imac-unknown-none-elf

Use make test to compile and run, try modify the contract youself.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published