Writing CLI for image processing in Rust with Clap and Image

Command Line Interface (CLI) is a mean of interacting with a computer program. It’s quite useful to wrap very often re-used functions and libraries into CLI, so let’s take a look at how to do this in Rust. Project overview Image crate from PistonDevelopers provides basic image processing functions. In this project we are going … [Read more…]

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…]

Writing simple addon for The Elder Scrolls Online

Intro World of Warcraft, The Elder Scrolls Online and many other games allow users to write scripts to modify and extend the user interface of the game. This is allowed, because the underlying logic is not being changed nor abused. Abusing the underlying logic would be cheating (if you want more about this, check one … [Read more…]