-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The Opcode must represent a full instruction for the VM and comply with the specification: https://github.com/FuelLabs/fuel-specs/blob/master/specs/vm/opcodes.md [`std::io`] is used for serialization/deserialization targetting compatibility. Resolves #1
- Loading branch information
Showing
7 changed files
with
1,713 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[package] | ||
name = "fuel-asm" | ||
description = "Defines all opcodes available in the FuelVM." | ||
version = "0.1.0" | ||
authors = ["Victor Lopez <victor.lopez@fuel.sh>"] | ||
edition = "2018" | ||
repository = "https://github.com/FuelLabs/fuel-asm" | ||
license = "Apache-2.0" | ||
keywords = ["blockchain", "cryptocurrencies", "fuel-vm", "vm"] | ||
categories = ["cryptography::cryptocurrencies", "data-structures", "parsing"] | ||
|
||
[dependencies] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
max_width = 120 | ||
wrap_comments = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#![feature(arbitrary_enum_discriminant)] | ||
#![feature(external_doc)] | ||
#![warn(missing_docs)] | ||
#![doc(include = "../README.md")] | ||
|
||
mod opcode; | ||
mod types; | ||
|
||
pub use opcode::Opcode; | ||
pub use types::{Immediate06, Immediate12, Immediate18, Immediate24, RegisterId, Word}; |
Oops, something went wrong.