#emacs #module #dynamic

emacs-rs-module

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

7 unstable releases (3 breaking)

0.5.0 Feb 24, 2018
0.4.0 Feb 18, 2018
0.2.2 Jan 8, 2018
0.1.2 Dec 23, 2017

#14 in Text editors

Download history 8/week @ 2018-05-04 3/week @ 2018-05-11 1/week @ 2018-05-18 14/week @ 2018-05-25 37/week @ 2018-06-01 2/week @ 2018-06-08 18/week @ 2018-06-15 9/week @ 2018-06-22 72/week @ 2018-06-29 56/week @ 2018-07-06 21/week @ 2018-07-20 16/week @ 2018-07-27

44 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.

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.
BSD-3-Clause license

Dependencies

Reverse deps