#emacs #module #dynamic


An Emacs dynamic module that helps developing other dynamic modules, in Rust

9 releases (5 breaking)

✓ Uses Rust 2018 edition

0.7.0 Apr 15, 2019
0.6.0 Mar 26, 2019
0.5.0 Feb 24, 2018
0.4.0 Feb 18, 2018
0.1.2 Dec 23, 2017

#31 in Text editors

30 downloads per month



Emacs Rust Module

This is an Emacs dynamic module that aims to streamline the development of other Emacs dynamic modules, written in Rust.


  • Build
    cargo build
  • Load the module in Emacs
    (module-load "/path/to/emacs-rs-module/target/debug/libemacs_rs_module.dylib")

Live reloading another module

To be reloadable, the module must export an entry point named emacs_rs_module_init. See test-module.

Run this in Emacs after each cargo build to reload the module:

(rs-module/load "/path/to/my-module/target/debug/libmy_module.dylib")


  • Add debug facilities.
  • Define interface for unloading.
  • Report ERT test results to cargo.


~65K SLoC