gapi-ocaml
gapi-ocaml copied to clipboard
Remove ocamlnet dependency
It's a pretty heavy dependency that requires C code. Would be great to do away with it for portability purposes.
What is ocamlnet being used for in gapi-ocaml? If it's not deeply embedded in the code I try removing it.
In the main library, I'm using some minor features of Ocamlnet:
- Netdate:
- Netchannels.pipe:
- Neturl and Netencoding:
- Netchannels and Netbuffer
In the examples I'm using it to start an HTTP server. But examples are optional, so you could keep ocamlnet as an optional dependency.
Also check this fork, where netstring was replaced by netstring-light.
If you succeed replacing Ocamlnet I'll be happy to merge the pull request.
Netencoding and Neturl are most likely easily replaced with ocaml-uri.
The rest I'll have to think about a little more. I'll probably do the work in the chunks you've outlined.