Signed-off-by: xermicus <bigcyrill@hotmail.com>
This commit is contained in:
xermicus
2025-09-03 20:17:51 +02:00
parent 2f89c743ce
commit a5fbd545c5
9 changed files with 207 additions and 5 deletions
+9
View File
@@ -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"
+1
View File
@@ -0,0 +1 @@
//! The revive Rust backend contract runtime library configuration.
+17
View File
@@ -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> {}