Get the latest tech news

Introducing tmux-rs


A Rust port of tmux

I figured out where to add/remove files in autogen.sh and how to modify the generated Makefile to link in a static library created by my rust crate using the crate-type = "staticlib" option. The C code would link against the Rust implementation as long as the function had the#[unsafe(no_mangle)] attribute extern "C" annotation and importantly the correct signature. Tmux makes extensive use of two data structures defined using macros: an intrusion red black tree and linked list.

Get the Android app

Or read this on Hacker News