Subject: [bug#48420] [PATCH 2/9] gnu: Add rust-emacs-module-0.10.

From: aecepoglu <[email-masked]>
Date: Fri, 14 May 2021 19:17:32 +0300

* gnu/packages/crates-io.scm (rust-emacs-module-0.10): New variable.
---
 gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e801f5bd4e..0db166b017 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -12688,6 +12688,32 @@ signing, and verification in pure Rust.")
 @code{Right} is a general purpose sum type with two cases.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-emacs-module-0.10
+  (package
+    (name "rust-emacs-module")
+    (version "0.10.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "emacs_module" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "1gf9lz735xbkyir53dyv362drfx3nin5an5cx39kd8q8kjjwix5g"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:skip-build?
+        #t
+        #:cargo-inputs
+        (("rust-bindgen" ,rust-bindgen-0.48))))
+    (home-page
+      "https://github.com/ubolonton/emacs-module-rs")
+    (synopsis "Raw FFI for emacs-module")
+    (description "This module provides a high-level binding to emacs-module:
+ Emacs' support for dynamic modules.")
+    (license license:bsd-3)))
+
 (define-public rust-embed-resource-1
   (package
     (name "rust-embed-resource")
-- 
2.31.1