From 8bb53de4fdda4b1795fc79567111ebbf1d095d35 Mon Sep 17 00:00:00 2001 From: Leandro Ostera Date: Fri, 12 Apr 2024 06:16:12 +0200 Subject: [PATCH 1/6] [new release] serde (3 packages) (0.0.2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CHANGES: Complete rewrite of the Serde library with a heavy focus on usability and maintainability. * Support writing manual serializers and deserializers with an ergonomic API. * Introduce a new CPS-style de/serialization mechanism. * Configurable de/serializers including options to: * rename all fields on records – thanks to @tjdevries :sparkles: * ignore unknown fields – thanks to @tjdevries :clap: * rename specific fields – thanks to @tjdevries :zap: * adjacently tagged variants – thanks to @sabine * out of order fields * Better derivation support now including: * records * variants (unit, newtype, tuple, and record variants) * lists and options * floats – thanks to @wesleimp :clap: * Support nix flakes for development and installation – thanks to @metame :sparkles: --- packages/serde/serde.0.0.2/opam | 41 ++++++++++++++++++ packages/serde_derive/serde_derive.0.0.2/opam | 42 ++++++++++++++++++ packages/serde_json/serde_json.0.0.2/opam | 43 +++++++++++++++++++ 3 files changed, 126 insertions(+) create mode 100644 packages/serde/serde.0.0.2/opam create mode 100644 packages/serde_derive/serde_derive.0.0.2/opam create mode 100644 packages/serde_json/serde_json.0.0.2/opam diff --git a/packages/serde/serde.0.0.2/opam b/packages/serde/serde.0.0.2/opam new file mode 100644 index 00000000000..0df9a9b756e --- /dev/null +++ b/packages/serde/serde.0.0.2/opam @@ -0,0 +1,41 @@ +opam-version: "2.0" +synopsis: "A serialization framework for OCaml" +description: + "Serde is a serialization framework for OCaml that runs on the principle of maximum efficiency and user ergonomics while maintaining format flexibility." +maintainer: ["Leandro Ostera "] +authors: ["Leandro Ostera "] +license: "MIT" +homepage: "https://github.com/serde-ml/serde" +bug-reports: "https://github.com/serde-ml/serde/issues" +depends: [ + "ocaml" {>= "5.1.1"} + "qcheck" {with-test} + "rio" {>= "0.0.8"} + "spices" {with-test} + "dune" {>= "3.12"} + "odoc" {with-doc} +] +build: [ + ["dune" "subst"] {dev} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@runtest" {with-test} + "@doc" {with-doc} + ] +] +dev-repo: "git+https://github.com/serde-ml/serde.git" +url { + src: + "https://github.com/serde-ml/serde/releases/download/0.0.2/serde-0.0.2.tbz" + checksum: [ + "sha256=0766b13f1e9421f98fab8efc5d43657229f3b3bc13ca4722086da634fe076ca4" + "sha512=1023dcd53c4b69032f466b338e2f0146ee3443b2ec4ce8db2d1f226e1409d81a3da3767ac73e9e047fd61b904a829ff841c26317c8ea050351ba6f70ab4158c4" + ] +} +x-commit-hash: "2ab29c28378b37ce69cd1ebbd55bc2f11d7a40f3" diff --git a/packages/serde_derive/serde_derive.0.0.2/opam b/packages/serde_derive/serde_derive.0.0.2/opam new file mode 100644 index 00000000000..f2be02b5a17 --- /dev/null +++ b/packages/serde_derive/serde_derive.0.0.2/opam @@ -0,0 +1,42 @@ +opam-version: "2.0" +synopsis: "Derive-macros for the Serde serialization framework" +description: + "These macros help derive serializers and deserializers for your existing types and provide all the functionality you expect to plug in different data-formats." +maintainer: ["Leandro Ostera "] +authors: ["Leandro Ostera "] +license: "MIT" +homepage: "https://github.com/serde-ml/serde" +bug-reports: "https://github.com/serde-ml/serde/issues" +depends: [ + "ocaml" {>= "5.1.1"} + "ppx_deriving" {>= "5.2.1"} + "ppxlib" {>= "0.28.0"} + "serde" {= version} + "serde_json" {with-test & = version} + "dune" {>= "3.12"} + "odoc" {with-doc} +] +build: [ + ["dune" "subst"] {dev} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@runtest" {with-test} + "@doc" {with-doc} + ] +] +dev-repo: "git+https://github.com/serde-ml/serde.git" +url { + src: + "https://github.com/serde-ml/serde/releases/download/0.0.2/serde-0.0.2.tbz" + checksum: [ + "sha256=0766b13f1e9421f98fab8efc5d43657229f3b3bc13ca4722086da634fe076ca4" + "sha512=1023dcd53c4b69032f466b338e2f0146ee3443b2ec4ce8db2d1f226e1409d81a3da3767ac73e9e047fd61b904a829ff841c26317c8ea050351ba6f70ab4158c4" + ] +} +x-commit-hash: "2ab29c28378b37ce69cd1ebbd55bc2f11d7a40f3" diff --git a/packages/serde_json/serde_json.0.0.2/opam b/packages/serde_json/serde_json.0.0.2/opam new file mode 100644 index 00000000000..df3596e1384 --- /dev/null +++ b/packages/serde_json/serde_json.0.0.2/opam @@ -0,0 +1,43 @@ +opam-version: "2.0" +synopsis: "JSON format support for Serde" +maintainer: ["Leandro Ostera "] +authors: ["Leandro Ostera "] +license: "MIT" +homepage: "https://github.com/serde-ml/serde" +bug-reports: "https://github.com/serde-ml/serde/issues" +depends: [ + "ocaml" {>= "5.1.1"} + "ppx_inline_test" {>= "v0.16.0"} + "qcheck" {with-test} + "rio" {>= "0.0.8"} + "serde" {= version} + "serde_derive" {with-test & = version} + "spices" {with-test} + "yojson" {>= "2.1.0"} + "dune" {>= "3.12"} + "odoc" {with-doc} +] +build: [ + ["dune" "subst"] {dev} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@runtest" {with-test} + "@doc" {with-doc} + ] +] +dev-repo: "git+https://github.com/serde-ml/serde.git" +url { + src: + "https://github.com/serde-ml/serde/releases/download/0.0.2/serde-0.0.2.tbz" + checksum: [ + "sha256=0766b13f1e9421f98fab8efc5d43657229f3b3bc13ca4722086da634fe076ca4" + "sha512=1023dcd53c4b69032f466b338e2f0146ee3443b2ec4ce8db2d1f226e1409d81a3da3767ac73e9e047fd61b904a829ff841c26317c8ea050351ba6f70ab4158c4" + ] +} +x-commit-hash: "2ab29c28378b37ce69cd1ebbd55bc2f11d7a40f3" From 4af1ceae964e8c10380f0c9829bd3cb10a8f5833 Mon Sep 17 00:00:00 2001 From: Thomas Gazagnaire Date: Fri, 12 Apr 2024 09:18:07 +0200 Subject: [PATCH 2/6] Update packages/serde/serde.0.0.2/opam Co-authored-by: Marcello Seri --- packages/serde/serde.0.0.2/opam | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/serde/serde.0.0.2/opam b/packages/serde/serde.0.0.2/opam index 0df9a9b756e..abaa4bf7240 100644 --- a/packages/serde/serde.0.0.2/opam +++ b/packages/serde/serde.0.0.2/opam @@ -13,6 +13,7 @@ depends: [ "rio" {>= "0.0.8"} "spices" {with-test} "dune" {>= "3.12"} + "conf-jq" {with-test} "odoc" {with-doc} ] build: [ From 794ff0504a0ab444ef94484a95ea50fa6c903ea7 Mon Sep 17 00:00:00 2001 From: Thomas Gazagnaire Date: Fri, 12 Apr 2024 09:26:39 +0200 Subject: [PATCH 3/6] Update packages/serde_derive/serde_derive.0.0.2/opam --- packages/serde_derive/serde_derive.0.0.2/opam | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/serde_derive/serde_derive.0.0.2/opam b/packages/serde_derive/serde_derive.0.0.2/opam index f2be02b5a17..4f47c0d0e89 100644 --- a/packages/serde_derive/serde_derive.0.0.2/opam +++ b/packages/serde_derive/serde_derive.0.0.2/opam @@ -14,6 +14,7 @@ depends: [ "serde" {= version} "serde_json" {with-test & = version} "dune" {>= "3.12"} + "conf-jq" {with-test} "odoc" {with-doc} ] build: [ From 0540d66553924f7437c4e4aa472e2ec019df7aaa Mon Sep 17 00:00:00 2001 From: Thomas Gazagnaire Date: Fri, 12 Apr 2024 10:09:43 +0200 Subject: [PATCH 4/6] Update packages/serde_json/serde_json.0.0.2/opam --- packages/serde_json/serde_json.0.0.2/opam | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/serde_json/serde_json.0.0.2/opam b/packages/serde_json/serde_json.0.0.2/opam index df3596e1384..1764d84a2c4 100644 --- a/packages/serde_json/serde_json.0.0.2/opam +++ b/packages/serde_json/serde_json.0.0.2/opam @@ -8,7 +8,6 @@ bug-reports: "https://github.com/serde-ml/serde/issues" depends: [ "ocaml" {>= "5.1.1"} "ppx_inline_test" {>= "v0.16.0"} - "qcheck" {with-test} "rio" {>= "0.0.8"} "serde" {= version} "serde_derive" {with-test & = version} From 8e1d8828e6d4f590878c1c22fd4e6a0c153b4ec3 Mon Sep 17 00:00:00 2001 From: Thomas Gazagnaire Date: Fri, 12 Apr 2024 10:09:49 +0200 Subject: [PATCH 5/6] Update packages/serde_json/serde_json.0.0.2/opam --- packages/serde_json/serde_json.0.0.2/opam | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/serde_json/serde_json.0.0.2/opam b/packages/serde_json/serde_json.0.0.2/opam index 1764d84a2c4..91e238d2e0f 100644 --- a/packages/serde_json/serde_json.0.0.2/opam +++ b/packages/serde_json/serde_json.0.0.2/opam @@ -10,8 +10,6 @@ depends: [ "ppx_inline_test" {>= "v0.16.0"} "rio" {>= "0.0.8"} "serde" {= version} - "serde_derive" {with-test & = version} - "spices" {with-test} "yojson" {>= "2.1.0"} "dune" {>= "3.12"} "odoc" {with-doc} From 708c9cabfbc26cb394d62a90ada88f15da28a49c Mon Sep 17 00:00:00 2001 From: Thomas Gazagnaire Date: Fri, 12 Apr 2024 10:09:54 +0200 Subject: [PATCH 6/6] Update packages/serde_json/serde_json.0.0.2/opam --- packages/serde_json/serde_json.0.0.2/opam | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/serde_json/serde_json.0.0.2/opam b/packages/serde_json/serde_json.0.0.2/opam index 91e238d2e0f..13bef2debec 100644 --- a/packages/serde_json/serde_json.0.0.2/opam +++ b/packages/serde_json/serde_json.0.0.2/opam @@ -24,7 +24,6 @@ build: [ "-j" jobs "@install" - "@runtest" {with-test} "@doc" {with-doc} ] ]