Building static Rust binaries for Linux

Rust has supported producing statically linked binaries since RFC #1721 which proposed the target-feature=+crt-static flag to statically link the platform C library into the final binary. This was initially only supported for Windows MSVC and the MUSL C library. While MUSL works for most people, it has many problems by virtue of being a work-in-progress such as unpredictable performance and many unimplemented features which programs tend to assume are present due to glibc being ubiquitous....

October 17, 2021 · 3 min

Simple tricks for faster Rust programs

Rust is pretty fast. Let’s get that out of the way. But sometimes, pretty fast is not fast enough. Fortunately, it’s also pretty easy to slightly improve the performance of your Rust binaries with minimal code changes. I’m gonna go over some of these tricks that I’ve picked up from many sources across the web (I’ll post a small list of very good blogs run by smart Rustaceans who cover interesting Rust related things)....

July 5, 2020 · 3 min

Tools for effective Rust development

Rust is a memory-safe systems language that is blazing fast, and comes with no runtime or garbage collector overhead. It can be used to build very performant web services, CLI tools, and even Linux kernel modules! Rust also provides an assortment of tools to make development faster and more user-friendly. I’ll be going over some of them here that I’ve personally used and found to be amazing. cargo-edit cargo-edit is a crate that extends Rust’s Cargo tool with add, remove and upgrade commands that allow you to manage dependencies with ease....

September 7, 2019 · 3 min