this repo has no description
1opam-version: "2.0"
2maintainer: "thomas@gazagnaire.org"
3authors: "Thomas Gazagnaire, Jon Ludlam"
4homepage: "https://github.com/mirage/ocaml-rpc"
5bug-reports: "https://github.com/mirage/ocaml-rpc/issues"
6dev-repo: "git+ssh://git@github.com/mirage/ocaml-rpc.git"
7doc: "https://mirage.github.io/ocaml-rpc/rpclib/ppx_deriving_rpc"
8tags: [
9 "org:mirage"
10 "org:xapi-project"
11]
12build: [
13 ["jbuilder" "build" "-p" name "-j" jobs]
14 ["jbuilder" "runtest" "-p" name "-j" jobs] {with-test}
15]
16depends: [
17 "ocaml" {>= "4.03.0" & < "4.10.0"}
18 "jbuilder" {>= "1.0+beta7"}
19 "rpclib" {= version}
20 "rresult"
21 "ppxlib" {< "0.9.0"}
22 "rpclib-lwt" {with-test & = version}
23 "rpclib-async" {with-test & = version}
24 "lwt" {with-test & >= "3.0.0"}
25 "async" {with-test & < "v0.13"}
26 "alcotest" {with-test}
27]
28synopsis: "ppx extension for rpclib"
29description: """
30The library provides the `[@@deriving rpc]` ppx directly
31generates the conversion functions.
32
33```ocaml
34type t = ... [@@deriving rpc]
35```
36
37will give two functions:
38
39* A function to convert values of type `t` to values of type `Rpc.t` :
40 `val rpc_of_t : t -> Rpc.t`
41
42* A function to convert values of type `Rpc.t` to values of type `t` :
43 `val t_of_rpc : Rpc.t -> (t,string) Result.result`
44
45It also supports the `@key` annotations for having different field names:
46
47```ocaml
48type t = { foo: int [@key "type"]; bar: int [@key "let"]; } [@@deriving rpc]
49```"""
50url {
51 src: "https://github.com/mirage/ocaml-rpc/archive/v6.0.0.tar.gz"
52 checksum: [
53 "sha256=ec4ba5bfbdbc11f0d3292f8e08af28354da1a6812243263136e7c7357d6b1935"
54 "md5=9d10fc413a559e1d8aa380a8b145736f"
55 ]
56}