Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for OCaml 5.0 #25

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 0 additions & 41 deletions Makefile

This file was deleted.

98 changes: 0 additions & 98 deletions _oasis

This file was deleted.

57 changes: 0 additions & 57 deletions _tags

This file was deleted.

27 changes: 0 additions & 27 deletions configure

This file was deleted.

3 changes: 3 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(lang dune 2.0)
(name msgpack)
(version 2.0.0)
2 changes: 1 addition & 1 deletion examples/build.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
ocamlfind ocamlc -linkpkg -package msgpack -package msgpack.conv -package ppx_meta_conv example.ml
ocamlfind ocamlc -linkpkg -package msgpack -package msgpack-conv -package ppx_meta_conv.ppx example.ml
2 changes: 1 addition & 1 deletion lib/conv/decode.ml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
open MsgpackBase
open Msgpack__MsgpackBase

type t = Msgpack.Serialize.t

Expand Down
11 changes: 11 additions & 0 deletions lib/conv/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(library
(public_name msgpack-conv)
(name msgpack_conv)
(modules
msgpack_conv
encode
decode)
(flags -g -w +a -annot)
(libraries
msgpack
ppx_meta_conv.runtime))
2 changes: 1 addition & 1 deletion lib/conv/encode.ml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
open MsgpackBase
open Msgpack__MsgpackBase

type t = Msgpack.Serialize.t

Expand Down
2 changes: 1 addition & 1 deletion lib/conv/msgpack_conv.ml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
open MsgpackBase
open Msgpack__MsgpackBase
open Meta_conv.Types

include Meta_conv.Coder.Make(struct
Expand Down
6 changes: 0 additions & 6 deletions lib/conv/msgpack_conv.mldylib

This file was deleted.

6 changes: 0 additions & 6 deletions lib/conv/msgpack_conv.mllib

This file was deleted.

22 changes: 0 additions & 22 deletions lib/core/META

This file was deleted.

12 changes: 12 additions & 0 deletions lib/core/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
(library
(public_name msgpack)
(modules
msgpack
hList
msgpackCore
pack
serialize
msgpackConfig
msgpackBase)
(flags -g -w +a-27-39-4 -annot)
(libraries num))
10 changes: 0 additions & 10 deletions lib/core/msgpack.mldylib

This file was deleted.

10 changes: 0 additions & 10 deletions lib/core/msgpack.mllib

This file was deleted.

2 changes: 2 additions & 0 deletions lib/core/msgpackCore.ml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module Pervasives = Stdlib

type __ = Obj.t
let __ = let rec f _ = Obj.repr f in Obj.repr f

Expand Down
9 changes: 0 additions & 9 deletions lib/msgpack.mlpack

This file was deleted.

18 changes: 18 additions & 0 deletions msgpack-conv.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
opam-version: "2.0"
version: "2.0.0"
license: "MIT"
synopsis: "A utility library to convert OCaml values to/from msgpack values"
maintainer: "mzp <[email protected]>"
author: "mzp <[email protected]>"
homepage: "http://github.com/msgpack/msgpack-ocaml/"
dev-repo: "git+https://github.com/msgpack/msgpack-ocaml"
bug-reports: "https://github.com/msgpack/msgpack-ocaml/issues"
build: ["dune" "build" "-p" name "-j" jobs]
run-test: ["dune" "runtest" "-p" name "-j" jobs]
depends: [
"ocaml" {>= "4.08"}
"dune" {>= "2.0"}
"msgpack" {= version}
"ppx_meta_conv" {>= "4.0.0"}
"ounit" {with-test}
]
18 changes: 18 additions & 0 deletions msgpack.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
opam-version: "2.0"
version: "2.0.0"
license: "MIT"
synopsis: "Msgpack library for OCaml"
description: "MessagePack is an efficient binary serialization format."
maintainer: "mzp <[email protected]>"
author: "mzp <[email protected]>"
homepage: "http://github.com/msgpack/msgpack-ocaml/"
dev-repo: "git+https://github.com/msgpack/msgpack-ocaml"
bug-reports: "https://github.com/msgpack/msgpack-ocaml/issues"
build: ["dune" "build" "-p" name "-j" jobs]
run-test: ["dune" "runtest" "-p" name "-j" jobs]
depends: [
"ocaml" {>= "4.08"}
"dune" {>= "2.0"}
"num" {>= "1.0"}
"ounit" {with-test}
]
Loading