How to use Diesel ORM in Rust

Diesel is a framework for Object Relational Mapping and Query Building. It’s goal is to get rid of alot of boilerplate code usually needed for interacting with a database. It should feel like Rust, so that the developer does not need to write SQL and instead can focus on coding. Great examples of SQL statements … [Read more…]

Extending C with Rust – 101

In this article I’m gonna show how to extend C code with a function written in Rust. For the sake of simplicity, let’s do it by writing a simple “hello world!”. Setup Initialize a new project with Cargo. I’m gonna call this one crust: cargo new crust Edit your Cargo.toml to make it look like … [Read more…]