this post was submitted on 23 Jul 2024
65 points (98.5% liked)

technology

23303 readers
17 users here now

On the road to fully automated luxury gay space communism.

Spreading Linux propaganda since 2020

Rules:

founded 4 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 6 points 3 months ago* (last edited 3 months ago) (3 children)

I've tried to learn Rust a few times and tbh the tooling just isn't that great. Maybe when Microsoft embraces it in VS (not VS Code!) I'll try again. JetBrains' Rust Rover looks somewhat compelling, but I couldn't get it to work for some reason. Also, I write a lot of code for ancient embedded systems that Rust doesn't support, so it's out for that reason anyway.

[–] [email protected] 2 points 3 months ago (1 children)

I don't remember exactly how, but you can specify a compiler using arcane magic I don't fully understand to compile for a baremetal target. Some people do full OS dev in just Rust, though usually C and ASM are involved to bootstrap. It can be somewhat arcane, though.

[–] [email protected] 2 points 3 months ago

There's a blog about writing a micro kernel in Rust that details how to compile for bare metal. It's actually possible to entirely avoid C, although a bit annoying to be sure.

load more comments (1 replies)