Rust: Procedural Macros

Hello and welcome to the second part of our series on writing Rust macros! In this article, we’ll be focusing on procedural macros, which can help extend your functions. If you missed the first part of this series, don’t worry - you can find it here. If you’re not yet familiar with macros in Rust, I highly recommend checking out the first article where I explain them in an easy-to-understand way....

April 26, 2023 · 9 min · 1776 words

Rust: Declarative macros

Let’s discuss Macros. They are one of many features in Rust that help you write better software. Macros enable you to write concise, clear code and reduce repetition. Introduction Macros are not functions, but can be called as if they were. They help write less code efficiently and are a useful tool for Rust applications. Macros are a way of writing code that generates other code, known as metaprogramming. Metaprogramming is a way for a program to write or manipulate other programs....

February 11, 2023 · 11 min · 2141 words

Hello Rust

I started to write Rust in the autumn of 2022 and have loved it ever since, even if the learning curve is kinda steep but when you start to understand how the language works it is pretty easy to work with it. This is some stuff I’ve learned since I started to write Rust that I think is useful information. Short about Rust Rust is a highly flexible, type-safe, blazingly fast high-performance language without a runtime or garbage collector that can be used on a wide area of domains ranging from web to embedded....

February 1, 2023 · 12 min · 2494 words