Skip to content

Commit

Permalink
meta: release 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
leostera committed Apr 11, 2024
1 parent 2b7380e commit ee2d308
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
24 changes: 24 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
# 0.0.2

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:

# 0.0.1

Introduce the library with a few standard serde formats:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ The main goals for `serde.ml` are:
structures of the user's choice with maximum efficiency.

```ocaml
type rank = Captain | Chief_petty_officer [@@deriving serializer, deserializer]
type t = { name : string; rank : rank } [@@deriving serializer, deserializer]
type rank = Captain | Chief_petty_officer [@@deriving serialize, deserialize]
type t = { name : string; rank : rank } [@@deriving serialize, deserialize]
let obrien = { name = "Miles O'Brien"; rank = Chief_petty_officer }
let sisko = { name = "Benjamin Sisko"; rank = Captain }
Expand Down

0 comments on commit ee2d308

Please sign in to comment.