From 4d6084fc888cb95d1274d0f39d26569a0752b194 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 22 May 2023 17:56:36 +0300 Subject: [PATCH] gnu: Add rust-unsafe-libyaml-0.2. * gnu/packages/crates-io.scm (rust-unsafe-libyaml-0.2): New variable. --- gnu/packages/crates-io.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index d03dc4235c..9a1d118601 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -70967,6 +70967,30 @@ clear display in the output.") "Traits and implementations for unchecked downcasting.") (license license:expat))) +;; This package was originally transpiled from libyaml, but has seen development +;; since then, showing that it is in its editable form. +(define-public rust-unsafe-libyaml-0.2 + (package + (name "rust-unsafe-libyaml") + (version "0.2.8") + (source (origin + (method url-fetch) + (uri (crate-uri "unsafe-libyaml" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "19l0v20x83dvxbr68rqvs9hvawaqd929hia1nldfahlhamm80r8q")))) + (build-system cargo-build-system) + (arguments + `(#:tests? #f ; use of undeclared crate or module `unsafe_libyaml_test_suite` + #:cargo-development-inputs + (("rust-pretty-assertions" ,rust-pretty-assertions-1)))) + (home-page "https://github.com/dtolnay/unsafe-libyaml") + (synopsis "Libyaml in rust") + (description "This package provides libyaml transpiled to rust by c2rust, +with changes and updated applied to it.") + (license license:expat))) + (define-public rust-unsafe-unwrap-0.1 (package (name "rust-unsafe-unwrap")