Skip to content

Commit 46daa11

Browse files
committed
Add enum aliases to Rust
1 parent 2e69b5a commit 46daa11

File tree

1 file changed

+15
-0
lines changed
  • bindings/rust/evmc-vm/src

1 file changed

+15
-0
lines changed

bindings/rust/evmc-vm/src/lib.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,18 @@ pub use evmc_sys as ffi;
55
// TODO: Add convenient helpers for evmc_result
66
// TODO: Add convenient helpers for evmc_execute
77
// TODO: Add a derive macro here for creating evmc_create
8+
9+
/// EVMC message (call) kind.
10+
pub type MessageKind = ffi::evmc_call_kind;
11+
12+
/// EVMC message (call) flags.
13+
pub type MessageFlags = ffi::evmc_flags;
14+
15+
/// EVMC status code.
16+
pub type StatusCode = ffi::evmc_status_code;
17+
18+
/// EVMC storage status.
19+
pub type StorageStatus = ffi::evmc_storage_status;
20+
21+
/// EVMC VM revision.
22+
pub type Revision = ffi::evmc_revision;

0 commit comments

Comments
 (0)