Skip to content

Commit

Permalink
update changes and bump to 2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
avsm committed Mar 30, 2017
1 parent 99406ec commit a13beb2
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 11 deletions.
22 changes: 22 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
2.4.0 (2017-03-30):

Distribute the PPX extension so that it is compatible with Jbuilder.
`ppx_cstruct` is now distributed as both a library and a binary.
Findlib predicates are used to distinguish usage:
- the binary is used for toplevel and simple -ppx building
- the library is used for linking custom rewriters
- `-package cstruct.ppx` alone uses the binary for rewriting.
- `-package cstruct.ppx` -predicates custom_ppx,ppx_driver" is used to link the rewriter.

To use the PPX extension in jbuilder, just add:

```
(libraries (cstruct))
(preprocess (pps (cstruct.ppx)))
```

to your `jbuild` file. This may be renamed to `ppx_cstruct` in a
future release so that the PPX dependency is decoupled from the main
library, so this `cstruct.ppx` is intended to be transitional as it
is what was originally used.

2.3.3 (2017-03-28):
* Port ppx extension to use `ocaml-migrate-parsetree` so it should
also compile on future revisions of OCaml (#127 via @let-def).
Expand Down
2 changes: 1 addition & 1 deletion _oasis
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
OASISFormat: 0.4
Name: cstruct
Version: 2.3.3
Version: 2.4.0
Synopsis: Manipulate external buffers as C-like structs
Authors: Anil Madhavapeddy, Richard Mortier, Thomas Gazagnaire,
Pierre Chambart, David Kaloper, Jeremy Yallop, Hannes Mehnert,
Expand Down
12 changes: 6 additions & 6 deletions lib/META
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# OASIS_START
# DO NOT EDIT (digest: 13bd1c0f803ec1e9d184ece54994027a)
version = "2.3.3"
# DO NOT EDIT (digest: fb431389e9ab426f0ae3345e52406fa7)
version = "2.4.0"
description = "Manipulate external buffers as C-like structs"
requires = "bytes bigarray ocplib-endian ocplib-endian.bigstring sexplib"
archive(byte) = "cstruct.cma"
Expand All @@ -9,7 +9,7 @@ archive(native) = "cstruct.cmxa"
archive(native, plugin) = "cstruct.cmxs"
exists_if = "cstruct.cma"
package "unix" (
version = "2.3.3"
version = "2.4.0"
description = "Manipulate external buffers as C-like structs"
requires = "cstruct unix"
archive(byte) = "unix_cstruct.cma"
Expand All @@ -20,7 +20,7 @@ package "unix" (
)

package "lwt" (
version = "2.3.3"
version = "2.4.0"
description = "Manipulate external buffers as C-like structs"
requires = "cstruct lwt.unix"
archive(byte) = "lwt_cstruct.cma"
Expand All @@ -31,7 +31,7 @@ package "lwt" (
)

package "ignore" (
version = "2.3.3"
version = "2.4.0"
description = "Manipulate external buffers as C-like structs"
requires =
"ocaml-migrate-parsetree ppx_tools_versioned.metaquot_404 bigarray"
Expand All @@ -41,7 +41,7 @@ package "ignore" (
)

package "async" (
version = "2.3.3"
version = "2.4.0"
description = "Manipulate external buffers as C-like structs"
requires = "cstruct async threads"
archive(byte) = "async_cstruct.cma"
Expand Down
9 changes: 5 additions & 4 deletions setup.ml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(* setup.ml generated for the first time by OASIS v0.4.6 *)

(* OASIS_START *)
(* DO NOT EDIT (digest: 2363fe385f4cc086b896352e8f3d33a7) *)
(* DO NOT EDIT (digest: e0a918cce02a869738a00d4ca261e101) *)
(*
Regenerated by OASIS v0.4.8
Visit http://oasis.forge.ocamlcore.org for more information and
Expand Down Expand Up @@ -7163,7 +7163,7 @@ let setup_t =
{
oasis_version = "0.4";
ocaml_version = Some (OASISVersion.VGreaterEqual "4.01");
version = "2.3.3";
version = "2.4.0";
license =
OASISLicense.DEP5License
(OASISLicense.DEP5Unit
Expand Down Expand Up @@ -9128,15 +9128,16 @@ let setup_t =
};
oasis_fn = Some "_oasis";
oasis_version = "0.4.8";
oasis_digest = Some "2\218MZ\238\205\030\133(MLI\022\143]h";
oasis_digest =
Some "C\141\186\204\158y%\140R\163\222\223\204\164\178\237";
oasis_exec = None;
oasis_setup_args = [];
setup_update = false
};;

let setup () = BaseSetup.setup setup_t;;

# 9140 "setup.ml"
# 9141 "setup.ml"
let setup_t = BaseCompat.Compat_0_4.adapt_setup_t setup_t
open BaseCompat.Compat_0_4
(* OASIS_STOP *)
Expand Down

0 comments on commit a13beb2

Please sign in to comment.