Fix trace module wasm build - #343
Conversation
WalkthroughThe changes introduce new WebAssembly (wasm)-specific dependencies and conditional compilation logic to the Changes
Sequence Diagram(s)sequenceDiagram
participant Consumer
participant rain-interpreter-eval (lib.rs)
participant trace module (trace.rs)
Consumer->>rain-interpreter-eval (lib.rs): use trace
rain-interpreter-eval (lib.rs)->>trace module (trace.rs): call functions/types
alt Target is WASM
trace module (trace.rs)->>wasm_bindgen_utils: Use wasm-specific traits/imports
else Target is not WASM
trace module (trace.rs)->>std/revm: Use native traits/imports and trait implementations
end
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (4)
💤 Files with no reviewable changes (1)
🧰 Additional context used🧠 Learnings (4)📓 Common learningsCargo.toml (3)crates/eval/Cargo.toml (3)crates/eval/src/trace.rs (9)🔇 Additional comments (7)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Motivation
trace module of the eval crate is used in wasm in the orderbook
Solution
make trace module (partially) available in wasm
Checks
By submitting this for review, I'm confirming I've done the following:
Summary by CodeRabbit
New Features
Refactor