emacs-rs-module

Crates.ioemacs-rs-module
lib.rsemacs-rs-module
version0.19.0
sourcesrc
created_at2017-12-22 17:00:45.522569
updated_at2024-03-16 14:27:13.13684
descriptionAn Emacs dynamic module that helps developing other dynamic modules, in Rust
homepage
repository
max_upload_size
id44059
size3,999
Tuấn-Anh Nguyễn (ubolonton)

documentation

README

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.
Commit count: 0

cargo fmt