r/AskProgramming • • May 03 '26

Architecture When is C better than Rust?

I've seen a lot of people saying that Rust = C but more secure. Is that true? Is there any catch or something? If you've used both of these programming languages, what was your experience with each? Which ones did you prefer?

I am writing this because I still don't know in which language should I code my backend for a website, and I don't want to mess things up. I am choosing low level because I want performance and low RAM usage + I am more familiar with low level languages.

TLDR; When do you think I should rather use C over Rust and vice versa?

3 Upvotes

91 comments sorted by

View all comments

Show parent comment

1

u/[deleted] May 03 '26

Rust might be faster, but rust doesn't have spring boot or django/fastapi

1

u/YMK1234 May 04 '26

I'm very sure rust has equivalent libraries for setting up APIs easily. For example, after 5 seconds of googling https://rocket.rs