diff options
author | Efraim Flashner <[email protected]> | 2025-01-03 11:03:39 +0200 |
---|---|---|
committer | Efraim Flashner <[email protected]> | 2025-01-06 12:22:41 +0200 |
commit | 6399052720856ecd570f12beb5b96215bd69760d (patch) | |
tree | a4318215e1144f6c1d63a887884dd390f29a4aec | |
parent | 8c3d9e3244ed442246056f9207f09d19200942da (diff) |
gnu: Add rust-validator-0.15.
* gnu/packages/crates-io.scm (rust-validator-0.15): New variable.
Change-Id: I51beb1585146d13b99e13382a14c6d218efa66fd
-rw-r--r-- | gnu/packages/crates-io.scm | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 0ceb9162d7..c2ff6356f1 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -88030,6 +88030,38 @@ a part of rav1e.") (description "This package provides simd optimized HTML escaping code.") (license (list license:expat license:asl2.0)))) +(define-public rust-validator-0.15 + (package + (name "rust-validator") + (version "0.15.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "validator" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1mgfpwry40fcsfabx7vziy0a7j9kxn6b49mvbv1hy770j09hlyzh")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-card-validate" ,rust-card-validate-2) + ("rust-idna" ,rust-idna-0.2) + ("rust-indexmap" ,rust-indexmap-1) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-phonenumber" ,rust-phonenumber-0.3) + ("rust-regex" ,rust-regex-1) + ("rust-serde" ,rust-serde-1) + ("rust-serde-derive" ,rust-serde-derive-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-unic-ucd-common" ,rust-unic-ucd-common-0.9) + ("rust-url" ,rust-url-2) + ("rust-validator-derive" ,rust-validator-derive-0.15)))) + (home-page "https://github.com/Keats/validator") + (synopsis "Common validation functions and trait") + (description + "This package provides common validation functions (email, url, length, +...) and trait.") + (license license:expat))) + (define-public rust-validator-derive-0.15 (package (name "rust-validator-derive") |