From: Troy Figiel <troy@troyfigiel.com>
To: 68665@debbugs.gnu.org
Subject: [bug#68665] [PATCH 12/12] gnu: Add rust-inline-c-0.1.
Date: Mon, 22 Jan 2024 23:54:46 +0100 [thread overview]
Message-ID: <87plxtgdqs.fsf@troyfigiel.com> (raw)
In-Reply-To: <877ck1hslb.fsf@troyfigiel.com>
* gnu/packages/crates-io.scm (rust-inline-c-0.1): New variable.
---
gnu/packages/crates-io.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 8f38c3233b..eea169d0b3 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -29397,6 +29397,41 @@ (define-public rust-inflector-0.11
as both traits and pure functions acting on String types.")
(license license:bsd-2)))
+(define-public rust-inline-c-0.1
+ (package
+ (name "rust-inline-c")
+ (version "0.1.7")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "inline-c" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1mcd7jcfwhkplgz1xb4iqrpc6m29v2k28w4q42yika9g23bd639l"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-assert-cmd" ,rust-assert-cmd-1)
+ ("rust-cc" ,rust-cc-1)
+ ("rust-inline-c-macro" ,rust-inline-c-macro-0.1)
+ ("rust-lazy-static" ,rust-lazy-static-1)
+ ("rust-predicates" ,rust-predicates-2)
+ ("rust-regex" ,rust-regex-1)
+ ("rust-rustc-version" ,rust-rustc-version-0.3)
+ ("rust-target-lexicon" ,rust-target-lexicon-0.11)
+ ("rust-tempfile" ,rust-tempfile-3))))
+ (home-page "https://github.com/Hywan/inline-c-rs")
+ (synopsis "Write and execute C code inside Rust")
+ (description
+ "@code{inline-c} is a small crate that allows a user to write
+C (including C++) code inside Rust. Both environments are strictly sandboxed.
+The C code is transformed into a string which is written to a temporary file.
+This file is then compiled into an object file, that is finally executed.
+
+The primary goal of @code{inline-c} is to ease the testing of a C API of a
+Rust program (generated with @code{cbindgen} for example).")
+ (license license:bsd-3)))
+
(define-public rust-inline-c-macro-0.1
(package
(name "rust-inline-c-macro")
--
2.42.0
next prev parent reply other threads:[~2024-01-22 23:18 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-22 23:01 [bug#68665] [PATCH 00/12 rust-team] gnu: Add Rust dependencies of python-cramjam Troy Figiel
2024-01-22 21:34 ` [bug#68665] [PATCH 03/12] gnu: rust-lz4-1: Update to 1.24.0 Troy Figiel
2024-01-22 21:34 ` [bug#68665] [PATCH 01/12] gnu: rust-lz4-sys-1: Update to 1.9.4 Troy Figiel
2024-01-22 21:34 ` [bug#68665] [PATCH 02/12] gnu: rust-lz4-sys-1: Don't skip the build Troy Figiel
2024-01-22 21:45 ` [bug#68665] [PATCH 04/12] gnu: rust-lz4-1: " Troy Figiel
2024-01-22 21:54 ` [bug#68665] [PATCH 05/12] gnu: rust-cbindgen-0.24: Update to 0.24.5 Troy Figiel
2024-01-22 22:01 ` [bug#68665] [PATCH 06/12] gnu: Add rust-target-lexicon-0.11 Troy Figiel
2024-01-22 22:08 ` [bug#68665] [PATCH 07/12] gnu: Add rust-libdeflate-sys-1 Troy Figiel
2024-01-22 22:12 ` [bug#68665] [PATCH 08/12] gnu: rust-libdeflate-sys-0.11: Inherit from rust-libdeflate-sys-1 Troy Figiel
2024-01-22 22:20 ` [bug#68665] [PATCH 09/12] gnu: Add rust-libdeflater-1 Troy Figiel
2024-01-22 22:27 ` [bug#68665] [PATCH 10/12] gnu: rust-libdeflater-0.11: Inherit from rust-libdeflater-1 Troy Figiel
2024-01-22 22:46 ` [bug#68665] [PATCH 11/12] gnu: Add rust-inline-c-macro-0.1 Troy Figiel
2024-01-22 22:54 ` Troy Figiel [this message]
2024-01-23 11:02 ` [bug#68665] [PATCH 00/12 rust-team] gnu: Add Rust dependencies of python-cramjam Troy Figiel
2024-01-23 14:36 ` bug#68665: " Efraim Flashner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87plxtgdqs.fsf@troyfigiel.com \
--to=troy@troyfigiel.com \
--cc=68665@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).