Skip to content

Commit 931c745

Browse files
authored
Merge pull request #140 from avsm/cstruct-4
add support for cstruct 4 and optional sexp
2 parents 54e522d + 4f5b5a6 commit 931c745

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v2.0.1 (2019-03-26)
2+
3+
* Use cstruct-sexp introduced in cstruct.4.0.0 (@avsm)
4+
15
## v2.0.0 (2019-03-10)
26

37
* Remove old `KV_RO` interface in the client as it has

lib/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(library
22
(name protocol_9p)
33
(public_name protocol-9p)
4-
(libraries rresult cstruct sexplib lwt mirage-flow-lwt mirage-channel-lwt
4+
(libraries rresult cstruct cstruct-sexp sexplib lwt mirage-flow-lwt mirage-channel-lwt
55
astring fmt)
66
(preprocess
77
(pps ppx_sexp_conv)))

lib/protocol_9p_request.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ module Write = struct
298298
type t = {
299299
fid: Fid.t;
300300
offset: int64;
301-
data: Cstruct.t;
301+
data: Cstruct_sexp.t;
302302
} [@@deriving sexp]
303303

304304
let equal a b =

protocol-9p.opam

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ depends: [
99
"ocaml" {>= "4.03.0"}
1010
"dune" {build & >= "1.0"}
1111
"base-bytes"
12-
"cstruct" {>= "3.0.0"}
12+
"cstruct" {>= "4.0.0"}
13+
"cstruct-sexp"
1314
"sexplib" {> "113.00.00"}
1415
"rresult"
1516
"mirage-flow-lwt"
@@ -19,7 +20,7 @@ depends: [
1920
"fmt"
2021
"logs" {>= "0.5.0"}
2122
"win-error"
22-
"ppx_sexp_conv"
23+
"ppx_sexp_conv" {>="v0.9.0"}
2324
"alcotest" {with-test & >= "0.4.0"}
2425
]
2526
build: [

0 commit comments

Comments
 (0)