mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-05-10 07:37:58 +00:00
@@ -0,0 +1,9 @@
|
||||
[package]
|
||||
name = "revive-rul-runtime-library"
|
||||
version.workspace = true
|
||||
license.workspace = true
|
||||
edition.workspace = true
|
||||
repository.workspace = true
|
||||
authors.workspace = true
|
||||
description = "revive compiler rust backend runtime library"
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
//! The revive Rust backend contract runtime library configuration.
|
||||
@@ -0,0 +1,17 @@
|
||||
//! The revive Rust backend contract runtime library.
|
||||
|
||||
#![no_std]
|
||||
|
||||
pub const EVM_WORD_SIZE_BYTES: usize = 32;
|
||||
|
||||
/// The emulated linear EVM heap memory size.
|
||||
pub const MEMORY_SIZE: usize = 1024 * 64;
|
||||
|
||||
/// The emulated linear EVM heap memory size.
|
||||
pub const MEMORY: [u8; MEMORY_SIZE] = [0; MEMORY_SIZE];
|
||||
|
||||
pub struct Function<const VARIABLES: usize> {
|
||||
pub variables: [u8; VARIABLES],
|
||||
}
|
||||
|
||||
impl<const VARIABLES: usize> Function<VARIABLES> {}
|
||||
Reference in New Issue
Block a user