From eb8bd361e86b27586ca78ed07d164562c4e5aa5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=96R=C3=96SK=C5=90I=20Andr=C3=A1s?= Date: Sat, 24 Feb 2024 21:40:03 +0100 Subject: [PATCH] gnu: Add rust-toml-edit-0.22. * gnu/packages/crates-io.scm (rust-toml-edit-0.22): New variable. (rust-toml-edit-0.21): Inherit from rust-toml-edit-0.22. Change-Id: Iecf3651483322d25edaa60aa40eb13048cce9761 Signed-off-by: Efraim Flashner --- gnu/packages/crates-io.scm | 40 +++++++++++++++++++++++++++++++------- 1 file changed, 33 insertions(+), 7 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 9826606894..a8c59d9921 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -77207,8 +77207,40 @@ serializing Rust structures.") (arguments `(#:cargo-inputs (("rust-serde" ,rust-serde-1)))))) +(define-public rust-toml-edit-0.22 + (package + (name "rust-toml-edit") + (version "0.22.7") + (source + (origin + (method url-fetch) + (uri (crate-uri "toml_edit" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "14p9jsa1plm48mkk7fx4n434s2rah4rdkd6fc04dg5f3rv8rqxhq")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-indexmap" ,rust-indexmap-2) + ("rust-kstring" ,rust-kstring-2) + ("rust-serde" ,rust-serde-1) + ("rust-serde-spanned" ,rust-serde-spanned-0.6) + ("rust-toml-datetime" ,rust-toml-datetime-0.6) + ("rust-winnow" ,rust-winnow-0.6)) + #:cargo-development-inputs + (("rust-libtest-mimic" ,rust-libtest-mimic-0.7) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-snapbox" ,rust-snapbox-0.4) + ("rust-toml-test-data" ,rust-toml-test-data-1) + ("rust-toml-test-harness" ,rust-toml-test-harness-0.4)))) + (home-page "https://github.com/toml-rs/toml") + (synopsis "Yet another format-preserving TOML parser") + (description "This package provides yet another format-preserving TOML +parser.") + (license (list license:expat license:asl2.0)))) + (define-public rust-toml-edit-0.21 (package + (inherit rust-toml-edit-0.22) (name "rust-toml-edit") (version "0.21.0") (source @@ -77218,7 +77250,6 @@ serializing Rust structures.") (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "00xa3qfk34qazvnkfxyyyqqc6nyl2ksks1c5bd53n5has0y3hkfk")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-indexmap" ,rust-indexmap-2) ("rust-kstring" ,rust-kstring-2) @@ -77231,12 +77262,7 @@ serializing Rust structures.") ("rust-serde-json" ,rust-serde-json-1) ("rust-snapbox" ,rust-snapbox-0.4) ("rust-toml-test-data" ,rust-toml-test-data-1) - ("rust-toml-test-harness" ,rust-toml-test-harness-0.4)))) - (home-page "https://github.com/toml-rs/toml") - (synopsis "Yet another format-preserving TOML parser") - (description "This package provides yet another format-preserving TOML -parser.") - (license (list license:expat license:asl2.0)))) + ("rust-toml-test-harness" ,rust-toml-test-harness-0.4)))))) (define-public rust-toml-edit-0.20 (package