#emacs #module #dynamic

emacs-rs-module

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

13 releases (breaking)

✓ Uses Rust 2018 edition

0.13.0 Mar 11, 2020
0.12.0 Dec 4, 2019
0.11.0 Aug 5, 2019
0.10.1 Jul 19, 2019
0.1.2 Dec 23, 2017

#44 in Text editors

Download history 32/week @ 2019-11-29 55/week @ 2019-12-06 62/week @ 2019-12-13 12/week @ 2019-12-27 2/week @ 2020-01-03 109/week @ 2020-01-10 37/week @ 2020-01-17 2/week @ 2020-01-24 14/week @ 2020-02-07 3/week @ 2020-02-14 36/week @ 2020-02-21 59/week @ 2020-02-28 35/week @ 2020-03-06 20/week @ 2020-03-13

121 downloads per month

BSD-3-Clause

4KB

Emacs Rust Module

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

Installation

  • 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")

TODOs

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

Dependencies

~1.2–3MB
~64K SLoC