From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 8N9GL7T3rmVlMwAA62LTzQ:P1 (envelope-from ) for ; Tue, 23 Jan 2024 00:18:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 8N9GL7T3rmVlMwAA62LTzQ (envelope-from ) for ; Tue, 23 Jan 2024 00:18:12 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=troyfigiel.com header.s=MBO0001 header.b=bdf3knLK; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=troyfigiel.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705965492; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=RYHHqQRY0hBjmFcF8hrPXyPEasJPWsKMdhWP0qmd6j0=; b=c0sLYqzm37CG4E8Egex26FUBdbC1Ijij4dB+R+/NssXlfYJlFBjDG1kdyx9Tq53iijTSy3 KciD9pNRA6er7S15w+xAeq6rgYSb29N04soLwkiTSkr5HRq2bAa/F0DmueQ32ij3Cit7we iVmEXIA/+smOaUfWhO9cqVoXXOSziTiCDbyUItx5KsFNhYZT4Zmu14fZnqB3VDI5P1D+Cd R06ZdWzNbU6aWTn4N494yB31pnTK12pTS298SfOMVviBfjDJnveKuQMSl4fkjZJ5lTOs0g LnrzmaCV6QyVq5jpagyzX2IpHmoOafFomNQ0giX5fs5YlRmhTQ+/DlyFJxb7CA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=troyfigiel.com header.s=MBO0001 header.b=bdf3knLK; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=troyfigiel.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705965492; a=rsa-sha256; cv=none; b=FwOrRjfG0VRWOtiTAhpIvj9NShdIX2gXL/BeFOO/BZk/A76RK4Ii8AGs/Sj4PNs0wqZb1D TP2ilmt4PB2alDiukfqG/rQ0u9bsKYU9DIgiVuDaVy1QHox5KyWp9DI4PHXlr8lYIeJCGL 78r77V2lj03esrq/TyZdsGwFz3f3dyNwJpH5tBYuVjxZCFAGI3jpmFuZZ8ciP6zkQpzdRD KNAVcG9ZpWmZpPSZPYmWzFAgtXHN9WNq1NRBHmJfBFgzPHIBrzjCSz1J4QCGbYoVUSVJHC krwlFct7js+F3Ih8oxdf2SmYFzYPq55CvUFsU5EBUkafoLrIoLXnsFjZ+TWfVQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AD61341460 for ; Tue, 23 Jan 2024 00:18:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rS3YG-0004iv-8A; Mon, 22 Jan 2024 18:18:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rS3YE-0004ik-3p for guix-patches@gnu.org; Mon, 22 Jan 2024 18:17:58 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rS3YD-0000Yb-GD for guix-patches@gnu.org; Mon, 22 Jan 2024 18:17:57 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rS3YH-000353-Og for guix-patches@gnu.org; Mon, 22 Jan 2024 18:18:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68665] [PATCH 12/12] gnu: Add rust-inline-c-0.1. References: <877ck1hslb.fsf@troyfigiel.com> In-Reply-To: <877ck1hslb.fsf@troyfigiel.com> Resent-From: Troy Figiel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 22 Jan 2024 23:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68665 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68665@debbugs.gnu.org Received: via spool by 68665-submit@debbugs.gnu.org id=B68665.170596543611770 (code B ref 68665); Mon, 22 Jan 2024 23:18:01 +0000 Received: (at 68665) by debbugs.gnu.org; 22 Jan 2024 23:17:16 +0000 Received: from localhost ([127.0.0.1]:41957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rS3XX-00033m-Op for submit@debbugs.gnu.org; Mon, 22 Jan 2024 18:17:16 -0500 Received: from mout-p-201.mailbox.org ([2001:67c:2050:0:465::201]:45500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rS3XV-00033Z-SX for 68665@debbugs.gnu.org; Mon, 22 Jan 2024 18:17:14 -0500 Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4TJmML1NTdz9syT for <68665@debbugs.gnu.org>; Tue, 23 Jan 2024 00:17:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troyfigiel.com; s=MBO0001; t=1705965422; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=RYHHqQRY0hBjmFcF8hrPXyPEasJPWsKMdhWP0qmd6j0=; b=bdf3knLKuWdUb7B9O7P8ebRYXiP/Io7s0lwQOtl6ABnRUF9hY1/XSrJbSSdqdmf2KHrO/6 ppkraftEjMUmeMewgcKsNwRPem661g1WdP1yRxel7zVSmqjrjCzBVHwPiIOeBTMOsIHRuX MOytB3DSdaoyo8BeV2+axNokdSYPzQSJQiu4tnpOMrWCSar5k2VHRObavzLhwOf9tcdXcK PMxqJduh4txVSUJaZ82+CV3taUwhWmSTdz8fI/KKqDPppqW/PnYEpdaBa2W/nDgyADtApp EVZ+dzCnCorSZJRVOpe7m9qx/I74SQXaSfOK3vU08JXGO7/zUqhznr5Z5LKmiA== From: Troy Figiel Date: Mon, 22 Jan 2024 23:54:46 +0100 Message-ID: <87plxtgdqs.fsf@troyfigiel.com> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 2.24 X-Migadu-Queue-Id: AD61341460 X-Spam-Score: 2.24 X-Migadu-Scanner: mx11.migadu.com X-TUID: 26VrukIKm0Ys * 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