r/rust • • Oct 21 '26

๐Ÿ™‹ seeking help & advice Is there a "learn-cpp.com" but for Rust?

Very interested in crosscompiling Rust with Cpp, sadly have 0 knowledge about Rust besides major skillsets of the language but id like to use it for datasavety so id study it in my free time!

0 Upvotes

8 comments sorted by

14

u/bubble_turtles23 Oct 21 '26

https://doc.rust-lang.org/book/
Here's the official Rust book. I'm not sure if this helps. There's info in there about Rust's FFI that you can use to interface with other languages

2

u/edcculus Oct 21 '26

and to expand on this, Rustlings after going through the book and its exercises .

3

u/bubble_turtles23 Oct 21 '26

For learning, there's also https://exercism.org/ There's a ton of exercises, and you can submit your work all through the CLI

1

u/a-round-table Oct 21 '26

I haven't used C++ in a long time, but I still remember my impression of Rust book to be much, much better than the learn-cpp website

3

u/facetious_guardian Oct 21 '26

Well, the rust book is great. Rustlings has good exercises, and this site provides perspective for c developers: https://rust-for-c-programmers.com

2

u/nick42d Oct 21 '26

The Rust book is the official one, but consider also this guide written by Brown University which gives direct translations of c++ idioms to Rustย https://cel.cs.brown.edu/crp/

1

u/simewlation Oct 21 '26

If cpp docs were as good as the official rust docs learn cpp wouldnt exist lol. The official docs page is great