macos linuxIn my last blog post I said I wanted to spend some time learning new things. The first of those is Rust. I had previously tried learning it, but got distracted before I got very far.
Since one of the things I'd use Rust for is web pages, I decided to learn how to compile to WebAssembly, how to interface with Javascript, and how to use WebSockets. At home, I use a Mac to work on my web projects, so for Rust I am compiling a native server and a wasm client. But I also wanted to try running this on redblobgames.com, which is a Linux server. How should I compile to Linux? My first thought was to use my Linux machine at home. I can install the Rust compiler there and compile the server on that machine. Alternatively, I could use a virtual machine running Linux. Both of these options seemed slightly annoying.
Tag: macos
Posts ![](/assets/images/rss.svg?id=e224533e3d45f55d210dc55c2bfd6f94)
![](/assets/images/jsonfeed.png?id=d1873e4df33b929ed43f33707a958b34)
macosHow to fetch batteries information from the macOS APIs with Rust