{"id":13648833,"url":"https://github.com/ubolonton/emacs-module-rs","last_synced_at":"2025-05-16T02:08:49.196Z","repository":{"id":29536151,"uuid":"115062759","full_name":"ubolonton/emacs-module-rs","owner":"ubolonton","description":"Rust binding and tools for Emacs's dynamic modules","archived":false,"fork":false,"pushed_at":"2024-09-19T01:52:10.000Z","size":637,"stargazers_count":354,"open_issues_count":23,"forks_count":23,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-05-09T15:19:45.211Z","etag":null,"topics":["binding","emacs","emacs-modules","ffi","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ubolonton.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-22T01:26:16.000Z","updated_at":"2025-04-12T01:04:21.000Z","dependencies_parsed_at":"2024-01-14T10:59:41.717Z","dependency_job_id":"fe8842b5-ed68-429f-bd32-65a2d96177d6","html_url":"https://github.com/ubolonton/emacs-module-rs","commit_stats":{"total_commits":469,"total_committers":5,"mean_commits":93.8,"dds":"0.11513859275053306","last_synced_commit":"126241a79d171e8de43c7db248b277fac7f1a4e8"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubolonton%2Femacs-module-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubolonton%2Femacs-module-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubolonton%2Femacs-module-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubolonton%2Femacs-module-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ubolonton","download_url":"https://codeload.github.com/ubolonton/emacs-module-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254453655,"owners_count":22073617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["binding","emacs","emacs-modules","ffi","rust"],"created_at":"2024-08-02T01:04:35.527Z","updated_at":"2025-05-16T02:08:49.180Z","avatar_url":"https://github.com/ubolonton.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# Emacs Module in Rust\n[![crates.io](https://img.shields.io/crates/v/emacs)](https://crates.io/crates/emacs)\n[![doc.rs](https://docs.rs/emacs/badge.svg)](https://docs.rs/emacs/)\n[![Azure Pipelines](https://dev.azure.com/ubolonton/emacs-module-rs/_apis/build/status/ci?branchName=master\u0026label=build\u0026api-version=6.0-preview.1)](https://dev.azure.com/ubolonton/emacs-module-rs/_build/latest?definitionId=1\u0026branchName=master)\n[![GitHub Actions](https://github.com/ubolonton/emacs-module-rs/actions/workflows/main.yml/badge.svg)](https://github.com/ubolonton/emacs-module-rs/actions/workflows/main.yml)\n\n[User Guide](https://ubolonton.github.io/emacs-module-rs/) | [Change Log](https://github.com/ubolonton/emacs-module-rs/blob/master/CHANGELOG.md) | [Examples](https://github.com/ubolonton/emacs-module-rs#example-modules)\n\nThis provides a high-level binding to `emacs-module`, Emacs's support for dynamic modules.\n\nCode for a minimal module looks like this:\n\n```rust\nuse emacs::{defun, Env, Result, Value};\n\nemacs::plugin_is_GPL_compatible!();\n\n#[emacs::module(name = \"greeting\")]\nfn init(_: \u0026Env) -\u003e Result\u003c()\u003e { Ok(()) }\n\n#[defun]\nfn say_hello(env: \u0026Env, name: String) -\u003e Result\u003cValue\u003c'_\u003e\u003e {\n    env.message(\u0026format!(\"Hello, {}!\", name))\n}\n```\n\n```emacs-lisp\n(require 'greeting)\n(greeting-say-hello \"Emacs\")\n```\n\n## Example Modules\n\n- [emacs-tree-sitter](https://github.com/ubolonton/emacs-tree-sitter): Binding for tree-sitter, an incremental parsing tool.\n- [pullover](https://github.com/ubolonton/pullover): Use Emacs to edit text for other macOS apps.\n- [test-module](test-module).\n- [emacs-rs-examples](https://github.com/ubolonton/emacs-rs-examples).\n- [magit-libgit2](https://github.com/ubolonton/magit-libgit2): Experimental attempt to speed up magit using libgit2.\n\n## Development\n\n- Building:\n    ```shell\n    bin/build\n    ```\n- Testing:\n    ```shell\n    bin/test\n    ```\n- Continuous testing (requires `cargo-watch`):\n    ```shell\n    bin/test watch\n    ```\n\nOn Windows, use PowerShell to run the corresponding `.ps1` scripts.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubolonton%2Femacs-module-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fubolonton%2Femacs-module-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubolonton%2Femacs-module-rs/lists"}