From 902d2968ce89bfb12644dcda2cc09c04090ed94e Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 18 Mar 2024 12:01:36 +0200 Subject: [PATCH] gnu: Add rust-rhai-1. * gnu/packages/crates-io.scm (rust-rhai-1): New variable. Change-Id: I5eb162af7013030fdbb2ffdc5d71491bd09f59b7 --- gnu/packages/crates-io.scm | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 32cd1eef16..866cbf0b4d 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -58549,6 +58549,49 @@ functionality as retain but gives mutable borrow to the predicate.") MIME Message Headers.") (license license:expat))) +(define-public rust-rhai-1 + (package + (name "rust-rhai") + (version "1.17.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "rhai" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0alqy1jglawbh3wq77axikl0613i3vm81h5yn2jah12d4ir369zn")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-test-flags '("--release" "--" + "--skip=tests::check_struct_sizes") + #:cargo-inputs (("rust-ahash" ,rust-ahash-0.8) + ("rust-arbitrary" ,rust-arbitrary-1) + ("rust-bitflags" ,rust-bitflags-2) + ("rust-core-error" ,rust-core-error-0.0.0) + ("rust-document-features" ,rust-document-features-0.2) + ("rust-getrandom" ,rust-getrandom-0.2) + ("rust-hashbrown" ,rust-hashbrown-0.14) + ("rust-instant" ,rust-instant-0.1) + ("rust-libm" ,rust-libm-0.2) + ("rust-no-std-compat" ,rust-no-std-compat-0.4) + ("rust-num-traits" ,rust-num-traits-0.2) + ("rust-once-cell" ,rust-once-cell-1) + ("rust-rhai-codegen" ,rust-rhai-codegen-2) + ("rust-rust-decimal" ,rust-rust-decimal-1) + ("rust-rustyline" ,rust-rustyline-13) + ("rust-serde" ,rust-serde-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-smallvec" ,rust-smallvec-1) + ("rust-smartstring" ,rust-smartstring-1) + ("rust-thin-vec" ,rust-thin-vec-0.2) + ("rust-unicode-xid" ,rust-unicode-xid-0.2)) + #:cargo-development-inputs (("rust-rmp-serde" ,rust-rmp-serde-1) + ("rust-serde-json" ,rust-serde-json-1)))) + (home-page "https://rhai.rs") + (synopsis "Embedded scripting for Rust") + (description "Embedded scripting for Rust.") + (license (list license:expat license:asl2.0)))) + (define-public rust-rhai-codegen-2 (package (name "rust-rhai-codegen")