Repository navigation
feat: Client-side WASM rustfmt engine with hot-key auto-formatting (closes #1302) - #1501
Merged
ayomideadeniran merged 1 commit intoOct 6, 2026
Conversation
…loses StellarDevHub#1302) - Add SorobanFormatter.ts with WASM rustfmt integration and JS fallback formatter - Register Cmd/Ctrl+S keybinding for document formatting in CodeEditor.tsx - Register DocumentFormattingEditProvider for soroban-rust language - Add rustfmt.wasm stub for client-side formatting - Format Soroban Rust code on save without network calls
|
@anifast-123 is attempting to deploy a commit to the Ayomide Adeniran's projects Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
|
Pr under reveiw. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements FE-HARD-06: Client-Side WASM rustfmt Engine with Hot-Key Auto-Formatting
Changes
New:
frontend/src/lib/editor/SorobanFormatter.tsformatSorobanSource()- formats Soroban Rust coderegisterSorobanDocumentFormattingEditProvider()- registers Monaco DocumentFormattingEditProviderinitializeRustfmtWasm()- loads and compiles rustfmt.wasmisRustfmtReady()- checks if WASM is loadedModified:
frontend/src/lib/editor/SorobanLanguage.tsModified:
frontend/src/components/playground/CodeEditor.tsxNew:
frontend/public/rustfmt.wasmfrontend/public/rustfmt.watAcceptance Criteria
Note
The rustfmt.wasm is a minimal stub for development. In production, this should be replaced with actual rustfmt compiled to WebAssembly (wasm32-unknown-unknown target) using the Rust toolchain.
Closes #1302