https://github.com/jjyr/ckb-vm-rust-demo
https://github.com/jjyr/ckb-vm-rust-demo
ckb ckb-vm rust
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/jjyr/ckb-vm-rust-demo
- Owner: jjyr
- Archived: true
- Created: 2019-12-03T13:54:24.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-11T05:30:13.000Z (over 6 years ago)
- Last Synced: 2025-02-18T18:50:11.372Z (over 1 year ago)
- Topics: ckb, ckb-vm, rust
- Language: Rust
- Size: 13.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CKB VM Rust Demo
[rust-contract](https://github.com/jjyr/ckb-vm-rust-demo/tree/master/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:
``` sh
rustup target add riscv64imac-unknown-none-elf
```
Use `make test` to compile and run, try modify the contract youself.