Rust on the WiFi Pineapple (and OpenWrt)

Learn how to compile Rust for the WiFi Pineapple and similar OpenWrt platforms.


Rust Context Manager

In Python there is a thing called a context manager. It looks like this: with open('file.txt') as f: # setup code runs here print # teardown code runs here do_other_thing(f) # error: f is not bound here Inside the indented block t... (more…)

Read more »

24 days of Rust – static initialization

Static variables are available throughout the entire life of a program. They are allocated in a block of memory known at compile time. Due to that, they tend to represent global state that the program can access. It's getting especially tricky if one stat...

Read more »