5 ms·
Author of the post here, feel free to ask me anything!
by xena 7y ago
Author of the post here, feel free to ask me anything!
- artursapek 7y agoDo you write code in that color scheme? (Dark green everything on a black background)
- xena 7y agoNo, I'm not sure why the gruvbox theme I use has that for code examples. Here's what my coding view looks like: https://i.imgur.com/oWFlmgB.png https://i.imgur.com/oWFlmgB.png
- seaish 7y agoWhy no `cargo run`?
- xena 7y agoI'm used to doing stuff with WebAssembly, that is beyond the reach of `cargo run` most of the time.
- CryZe 7y agoActually even for wasm you can make `cargo run` work. You just need to write a script for it and use it as the target runner. Especially for WASI this is great where you can just specify wasmtime as the runner and then cargo test / bench / run all work perfectly fine.
- hamaluik 7y agoI was actually just searching for this the other day but couldn’t quite figure it out. Do you have any guides on doing just this? Thanks!
- hrombach 7y agoIt was really helpful doing some first steps with rust. One suggestion: add a warning for macOS users that psutil::host::uptime is not available on macOS. I had to figure that out myself and it was quite frustrating. I figure you didn't know that, and it's not like the article claims otherwise, but it would be useful to add I think.
- correct_horse 7y agoWhy did you pick Rocket? For example, Actix-Web is a viable alternative that works on a stable compiler.
- camillovisini 7y agoGreat article, thank you! A suggestion: The code examples were somewhat hard to read. Perhaps you could add syntax highlighting (e.g. via prism or highlight.js).