gnu: Add rust-postcard-1.

* gnu/packages/crates-io.scm (rust-postcard-1): New variable.

Change-Id: I8378bf118f31dec6d0002e2989bbfa64b126e502
This commit is contained in:
Efraim Flashner 2024-03-31 14:57:57 +03:00
parent dfa50b8624
commit 5678be9a3c
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -53926,6 +53926,34 @@ (define-public rust-portaudio-sys-0.1
I/O library.") I/O library.")
(license license:expat))) (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 (define-public rust-postcard-derive-0.1
(package (package
(name "rust-postcard-derive") (name "rust-postcard-derive")