From 5678be9a3c6bc551f86649b3d97649f7bf7eb84c Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 31 Mar 2024 14:57:57 +0300 Subject: [PATCH] gnu: Add rust-postcard-1. * gnu/packages/crates-io.scm (rust-postcard-1): New variable. Change-Id: I8378bf118f31dec6d0002e2989bbfa64b126e502 --- gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 7774a6e5c2..4753d4fd6f 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -53926,6 +53926,34 @@ (define-public rust-portaudio-sys-0.1 I/O library.") (license license:expat))) +(define-public rust-postcard-1 + (package + (name "rust-postcard") + (version "1.0.8") + (source + (origin + (method url-fetch) + (uri (crate-uri "postcard" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1y106iwjv6vm7s4zkszgxlhacca1xbw6qcwf8il7xc0ddkp52p55")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-cobs" ,rust-cobs-0.2) + ("rust-const-format" ,rust-const-format-0.2) + ("rust-crc" ,rust-crc-3) + ("rust-defmt" ,rust-defmt-0.3) + ("rust-embedded-io" ,rust-embedded-io-0.4) + ("rust-heapless" ,rust-heapless-0.7) + ("rust-paste" ,rust-paste-1) + ("rust-postcard-derive" ,rust-postcard-derive-0.1) + ("rust-serde" ,rust-serde-1)))) + (home-page "https://github.com/jamesmunns/postcard") + (synopsis "A no_std + serde compatible message library for Rust") + (description + "This package provides a no_std + serde compatible message library for Rust.") + (license (list license:expat license:asl2.0)))) + (define-public rust-postcard-derive-0.1 (package (name "rust-postcard-derive")