Skip to content

[wip] rel 3.0.0 with soft sexp dependency and result types#79

Merged
avsm merged 19 commits intomirage:masterfrom
avsm:rev-api
Jan 2, 2019
Merged

[wip] rel 3.0.0 with soft sexp dependency and result types#79
avsm merged 19 commits intomirage:masterfrom
avsm:rev-api

Conversation

@avsm
Copy link
Copy Markdown
Member

@avsm avsm commented Dec 26, 2018

Just still finishing this of but wanted to preview the PR. This release features several backwards incompatible changes, but ones that should increase the portability and robustness of the library. Requested by @hannesm for smaller unikernels.

  • Remove the sexp serialisers from the main interface in favour of pp functions. Use the Ipaddr_sexp module if you still need a sexp serialiser.
  • Break out the Macaddr module into a separate opam package so that the Ipaddr module can be wrapped.
  • Replace all the of_string/bytes functions that formerly returned option types with the Rresult result types instead.
  • Remove pp_hum which was deprecated in 2.9.0.
  • fully update CHANGES
  • add Macaddr_sexp
  • add ocamldoc to new Sexp modules to explain how they work
  • add ppx_deriving_sexp test case (only a test time dependency)

avsm added 17 commits December 22, 2018 18:17
Signed-off-by: Anil Madhavapeddy <anil@recoil.org>
Signed-off-by: Anil Madhavapeddy <anil@recoil.org>
Signed-off-by: Anil Madhavapeddy <anil@recoil.org>
…he `Ipaddr` module can be wrapped.

Signed-off-by: Anil Madhavapeddy <anil@recoil.org>
Also add a scope converter to/from strings
These are compatible with ppx_sexp_conv and Sexplib0
Signed-off-by: Anil Madhavapeddy <anil@recoil.org>
Signed-off-by: Anil Madhavapeddy <anil@recoil.org>
also fix up test cases

Signed-off-by: Anil Madhavapeddy <anil@recoil.org>
Signed-off-by: Anil Madhavapeddy <anil@recoil.org>
avsm added a commit to avsm/opam-repository that referenced this pull request Dec 26, 2018
avsm added 2 commits December 26, 2018 20:31
Signed-off-by: Anil Madhavapeddy <anil@recoil.org>
avsm added a commit to avsm/ocaml-conduit that referenced this pull request Dec 26, 2018
see mirage/ocaml-ipaddr#79

Signed-off-by: Anil Madhavapeddy <anil@recoil.org>
@avsm
Copy link
Copy Markdown
Member Author

avsm commented Dec 27, 2018

cc @dinosaure in case you use this library in mrmime and have any opinions

- `ipaddr.top`: Toplevel printers for Ipaddr.
- `macaddr.top`: Toplevel printers for Macaddr.
- `ipaddr.sexp`: S-expression converters for Ipaddr.
- `macaddr.sexp`: S-expression converters for Macaddr.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's as well ipaddr.unix last time i looked - it should be added here

@hannesm
Copy link
Copy Markdown
Member

hannesm commented Jan 1, 2019

this looks good to me, just two minor comments for README. would appreciate this to be merged and have a 3.0 release together with #80 (certainly 3.0 will break several reverse deps, but we can fix them after release)

# ipaddr: IP (and MAC) address manipulation

A library for manipulation of IP (and MAC) address representations.
A library for manipulation of IP and MAC address representations.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in line 1, we should remove the parens as well imho

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks updated the README more generally in 8e2fc40

avsm added a commit to avsm/ocaml-ipaddr that referenced this pull request Jan 2, 2019
@avsm avsm merged commit ff26602 into mirage:master Jan 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants