question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rust (wasm) support

See original GitHub issue

I’ve just started to play around with this https://github.com/thomashorrobin/create-react-app-rust create-react-app fork that adds rust support. I had some problems with typescript using it and decide to rebase on top of the latest create-react-app to not waste time debugging for something that’s already fixed here. While doing this I realised that the actual changes for rust seem minimal. I’m not sure if there was ever a discussion about folding this fork into this project. I couldn’t find anything in the issues to that extent.

My question is: would it be of interest to include Rust (via WASM) support in this package directly, or maintain the separate fork? If there’s interest I can rebase again and prepare the fork to be submitted as a PR. Thanks!

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:13
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
pricheycommented, Mar 4, 2019

Not to co-opt this thread but for posterity, I wrote about a solution to this using react-app-rewired: https://prestonrichey.com/blog/react-rust-wasm/. Obviously vanilla CRA support for Wasm would be great but this might be a resource for others playing around in this space in the meantime.

2reactions
pricheycommented, Mar 14, 2019

@ponchofiesta Did you set your wasm-bindgen version as specified here? https://github.com/rustwasm/book/issues/148#issuecomment-463809784

Read more comments on GitHub >

github_iconTop Results From Across the Web

Introduction - Rust and WebAssembly
This small book describes how to use Rust and WebAssembly together. Who is this book for? This book is for anyone interested in...
Read more >
WebAssembly - Rust Programming Language
Automatically generate binding code between Rust, WebAssembly, and JavaScript APIs. Take advantage of libraries like web-sys that provide pre-packaged bindings ...
Read more >
Compiling from Rust to WebAssembly - MDN Web Docs
This tutorial takes you through all you need to know to compile a Rust project to wasm and use it in an existing...
Read more >
5 Rust WebAssembly Frameworks for Your Next Application
Yew is a Rust framework for building multithreaded frontend web apps using WebAssembly. It allows you to write Rust code and transpile your...
Read more >
Rust - Wasmtime
Rust. The Rust Programming Language supports WebAssembly as a compilation target. If you're not familiar with Rust it's recommended to start with its ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found