Skip to content

Commit

Permalink
Add enum aliases to Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Mar 19, 2019
1 parent 6cf62ae commit 1d13dfa
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bindings/rust/evmc-vm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@ pub use evmc_sys as ffi;
// TODO: Add convenient helpers for evmc_execute
// TODO: Add a derive macro here for creating evmc_create

/// EVMC message (call) kind.
pub type MessageKind = ffi::evmc_call_kind;

/// EVMC message (call) flags.
pub type MessageFlags = ffi::evmc_flags;

/// EVMC status code.
pub type StatusCode = ffi::evmc_status_code;

/// EVMC storage status.
pub type StorageStatus = ffi::evmc_storage_status;

/// EVMC VM revision.
pub type Revision = ffi::evmc_revision;

/// EVMC result structure.
pub struct ExecutionResult {
status_code: ffi::evmc_status_code,
Expand Down

0 comments on commit 1d13dfa

Please sign in to comment.