24 days of Rust – error_chain

If you have a background in Python, Java or C++, you’re probably used to
raising exceptions if something goes wrong. Rust doesn’t have exceptions.
The official Rust book has a
comprehensive chapter on error handling,
but the TL;DR is we should probably us…

Similar

Error Handling in Rust

Like most programming languages, Rust encourages the programmer to handle errors in a particular way. Generally speaking, error handling is divided into two broad categories: exceptions and return values. Rust opts for return values. (more…)

Read more »

C2Rust: Merging C Headers into Rust Modules

Producing readable, idiomatic Rust code is a major goal of C2Rust, our project to accelerate migration of C code into Rust. One hurdle we faced is the mismatch between C headers and the Rust module system. C and Rust are similar in many ways: they're both... (more…)

Read more »

24 days of Rust – winreg

Fact: I'm writing these articles and examples on a Windows machine and so far everything compiles and works as expected. Just so you know, Rust supports Windows in the top tier. I'm mentioning it here since a few people I talked to assumed Windows support...

Read more »