|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | + <title>REVM - Rust Ethereum Virtual Machine</title> |
| 7 | + <style> |
| 8 | + * { |
| 9 | + margin: 0; |
| 10 | + padding: 0; |
| 11 | + box-sizing: border-box; |
| 12 | + } |
| 13 | + |
| 14 | + body { |
| 15 | + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; |
| 16 | + background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); |
| 17 | + color: #f8fafc; |
| 18 | + min-height: 100vh; |
| 19 | + padding: 2rem; |
| 20 | + line-height: 1.6; |
| 21 | + } |
| 22 | + |
| 23 | + .container { |
| 24 | + max-width: 1000px; |
| 25 | + margin: 0 auto; |
| 26 | + } |
| 27 | + |
| 28 | + header { |
| 29 | + text-align: center; |
| 30 | + margin-bottom: 3rem; |
| 31 | + padding: 2rem 0; |
| 32 | + border-bottom: 1px solid #334155; |
| 33 | + } |
| 34 | + |
| 35 | + .logo { |
| 36 | + font-size: 3rem; |
| 37 | + font-weight: bold; |
| 38 | + background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 100%); |
| 39 | + -webkit-background-clip: text; |
| 40 | + background-clip: text; |
| 41 | + color: transparent; |
| 42 | + display: inline-block; |
| 43 | + margin-bottom: 1rem; |
| 44 | + } |
| 45 | + |
| 46 | + h1 { |
| 47 | + font-size: 2.5rem; |
| 48 | + margin-bottom: 1rem; |
| 49 | + } |
| 50 | + |
| 51 | + .subtitle { |
| 52 | + font-size: 1.2rem; |
| 53 | + color: #94a3b8; |
| 54 | + margin-bottom: 2rem; |
| 55 | + } |
| 56 | + |
| 57 | + .badges { |
| 58 | + display: flex; |
| 59 | + justify-content: center; |
| 60 | + gap: 1rem; |
| 61 | + margin: 2rem 0; |
| 62 | + flex-wrap: wrap; |
| 63 | + } |
| 64 | + |
| 65 | + .badge { |
| 66 | + background: rgba(30, 41, 59, 0.7); |
| 67 | + border: 1px solid #334155; |
| 68 | + padding: 0.5rem 1rem; |
| 69 | + border-radius: 999px; |
| 70 | + font-size: 0.875rem; |
| 71 | + font-weight: 600; |
| 72 | + } |
| 73 | + |
| 74 | + .content { |
| 75 | + display: grid; |
| 76 | + grid-template-columns: 1fr 1fr; |
| 77 | + gap: 3rem; |
| 78 | + margin-bottom: 3rem; |
| 79 | + } |
| 80 | + |
| 81 | + .card { |
| 82 | + background: rgba(30, 41, 59, 0.7); |
| 83 | + border: 1px solid #334155; |
| 84 | + border-radius: 12px; |
| 85 | + padding: 2rem; |
| 86 | + backdrop-filter: blur(10px); |
| 87 | + } |
| 88 | + |
| 89 | + .card h2 { |
| 90 | + color: #60a5fa; |
| 91 | + margin-bottom: 1rem; |
| 92 | + font-size: 1.5rem; |
| 93 | + } |
| 94 | + |
| 95 | + .card h3 { |
| 96 | + color: #a78bfa; |
| 97 | + margin: 1.5rem 0 0.5rem; |
| 98 | + } |
| 99 | + |
| 100 | + ul { |
| 101 | + list-style-position: inside; |
| 102 | + margin: 1rem 0; |
| 103 | + } |
| 104 | + |
| 105 | + li { |
| 106 | + margin: 0.5rem 0; |
| 107 | + color: #cbd5e1; |
| 108 | + } |
| 109 | + |
| 110 | + code { |
| 111 | + background: #1e293b; |
| 112 | + padding: 0.2rem 0.5rem; |
| 113 | + border-radius: 4px; |
| 114 | + font-family: 'Courier New', monospace; |
| 115 | + font-size: 0.9rem; |
| 116 | + border: 1px solid #334155; |
| 117 | + } |
| 118 | + |
| 119 | + pre { |
| 120 | + background: #0f172a; |
| 121 | + padding: 1rem; |
| 122 | + border-radius: 8px; |
| 123 | + overflow-x: auto; |
| 124 | + margin: 1rem 0; |
| 125 | + border: 1px solid #334155; |
| 126 | + } |
| 127 | + |
| 128 | + pre code { |
| 129 | + background: transparent; |
| 130 | + border: none; |
| 131 | + padding: 0; |
| 132 | + } |
| 133 | + |
| 134 | + .links { |
| 135 | + display: flex; |
| 136 | + gap: 1rem; |
| 137 | + margin-top: 2rem; |
| 138 | + flex-wrap: wrap; |
| 139 | + } |
| 140 | + |
| 141 | + .btn { |
| 142 | + background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%); |
| 143 | + color: white; |
| 144 | + text-decoration: none; |
| 145 | + padding: 0.75rem 1.5rem; |
| 146 | + border-radius: 8px; |
| 147 | + font-weight: 600; |
| 148 | + transition: transform 0.2s, opacity 0.2s; |
| 149 | + display: inline-block; |
| 150 | + } |
| 151 | + |
| 152 | + .btn:hover { |
| 153 | + opacity: 0.9; |
| 154 | + transform: translateY(-2px); |
| 155 | + } |
| 156 | + |
| 157 | + .btn.secondary { |
| 158 | + background: #334155; |
| 159 | + } |
| 160 | + |
| 161 | + .btn.secondary:hover { |
| 162 | + background: #475569; |
| 163 | + } |
| 164 | + |
| 165 | + footer { |
| 166 | + text-align: center; |
| 167 | + margin-top: 3rem; |
| 168 | + padding-top: 2rem; |
| 169 | + border-top: 1px solid #334155; |
| 170 | + color: #64748b; |
| 171 | + font-size: 0.875rem; |
| 172 | + } |
| 173 | + |
| 174 | + @media (max-width: 768px) { |
| 175 | + .content { |
| 176 | + grid-template-columns: 1fr; |
| 177 | + } |
| 178 | + |
| 179 | + .logo { |
| 180 | + font-size: 2rem; |
| 181 | + } |
| 182 | + |
| 183 | + h1 { |
| 184 | + font-size: 2rem; |
| 185 | + } |
| 186 | + } |
| 187 | + </style> |
| 188 | +</head> |
| 189 | +<body> |
| 190 | + <div class="container"> |
| 191 | + <header> |
| 192 | + <div class="logo">REVM</div> |
| 193 | + <h1>Rust Ethereum Virtual Machine</h1> |
| 194 | + <p class="subtitle">High-performance EVM implementation in Rust, powering Foundry and other blockchain tools</p> |
| 195 | + |
| 196 | + <div class="badges"> |
| 197 | + <div class="badge">Rust</div> |
| 198 | + <div class="badge">EVM Compatible</div> |
| 199 | + <div class="badge">High Performance</div> |
| 200 | + </div> |
| 201 | + </header> |
| 202 | + |
| 203 | + <div class="content"> |
| 204 | + <div class="card"> |
| 205 | + <h2>About REVM</h2> |
| 206 | + <p>REVM is a pure Rust implementation of the Ethereum Virtual Machine (EVM) used by major blockchain projects:</p> |
| 207 | + |
| 208 | + <ul> |
| 209 | + <li><strong>Foundry</strong> - Smart contract development toolchain</li> |
| 210 | + <li><strong>Reth</strong> - Ethereum execution client</li> |
| 211 | + <li><strong>Helios</strong> - Ethereum light client</li> |
| 212 | + <li><strong>Alloy</strong> - Ethereum development framework</li> |
| 213 | + </ul> |
| 214 | + |
| 215 | + <h3>Key Features</h3> |
| 216 | + <ul> |
| 217 | + <li>Blazing Fast - Optimized Rust performance</li> |
| 218 | + <li>Memory Safe - No undefined behavior</li> |
| 219 | + <li>Modular Design - Pluggable components</li> |
| 220 | + <li>No-std Support - Embedded environments</li> |
| 221 | + <li>Full EVM Compatibility - All opcodes supported</li> |
| 222 | + </ul> |
| 223 | + </div> |
| 224 | + |
| 225 | + <div class="card"> |
| 226 | + <h2>Quick Start</h2> |
| 227 | + |
| 228 | + <h3>Installation</h3> |
| 229 | + <p>Add REVM to your <code>Cargo.toml</code>:</p> |
| 230 | + <pre><code>[dependencies] |
| 231 | +revm = "34.0.0"</code></pre> |
| 232 | + |
| 233 | + <h3>Basic Usage</h3> |
| 234 | + <pre><code>use revm::{ |
| 235 | + db::{CacheDB, EmptyDB}, |
| 236 | + primitives::{address, U256}, |
| 237 | + Evm, |
| 238 | +}; |
| 239 | + |
| 240 | +fn main() { |
| 241 | + let db = CacheDB::new(EmptyDB::default()); |
| 242 | + let evm = Evm::builder() |
| 243 | + .with_db(db) |
| 244 | + .build(); |
| 245 | + |
| 246 | + let result = evm.transact().unwrap(); |
| 247 | + println!("Gas used: {:?}", result.result.gas_used()); |
| 248 | +}</code></pre> |
| 249 | + |
| 250 | + <h3>Run Examples</h3> |
| 251 | + <pre><code>git clone https://github.com/bluealloy/revm |
| 252 | +cd revm |
| 253 | +cargo run --example my_evm</code></pre> |
| 254 | + </div> |
| 255 | + </div> |
| 256 | + |
| 257 | + <div class="card"> |
| 258 | + <h2>Documentation & Resources</h2> |
| 259 | + |
| 260 | + <div class="links"> |
| 261 | + <a href="https://docs.rs/revm" class="btn" target="_blank">API Docs</a> |
| 262 | + <a href="https://github.com/bluealloy/revm" class="btn" target="_blank">GitHub</a> |
| 263 | + <a href="https://crates.io/crates/revm" class="btn secondary" target="_blank">Crates.io</a> |
| 264 | + <a href="https://github.com/bluealloy/revm/tree/main/examples" class="btn secondary" target="_blank">Examples</a> |
| 265 | + </div> |
| 266 | + </div> |
| 267 | + |
| 268 | + <footer> |
| 269 | + <p>© 2024 REVM - Rust Ethereum Virtual Machine</p> |
| 270 | + <p>Repository: <a href="https://github.com/bluealloy/revm" style="color: #60a5fa;">github.com/bluealloy/revm</a></p> |
| 271 | + </footer> |
| 272 | + </div> |
| 273 | +</body> |
| 274 | +</html> |
0 commit comments