Skip to content

Commit

Permalink
Merge pull request #213 from talex5/capnpc
Browse files Browse the repository at this point in the history
Switch from "capnpc" to "capnp compile"
  • Loading branch information
talex5 authored Oct 30, 2020
2 parents 4e1fdf8 + e1ba530 commit 7a04a67
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ Here's a suitable `dune` file to compile the schema file and then the generated
(rule
(targets echo_api.ml echo_api.mli)
(deps echo_api.capnp)
(action (run capnpc -o %{bin:capnpc-ocaml} %{deps})))
(action (run capnp compile -o %{bin:capnpc-ocaml} %{deps})))
```

The service is now usable:
Expand Down Expand Up @@ -541,7 +541,7 @@ Edit the `dune` file to build a client and server:
(rule
(targets echo_api.ml echo_api.mli)
(deps echo_api.capnp)
(action (run capnpc -o %{bin:capnpc-ocaml} %{deps})))
(action (run capnp compile -o %{bin:capnpc-ocaml} %{deps})))
```

Here's a suitable `server.ml`:
Expand Down
4 changes: 2 additions & 2 deletions capnp-rpc-lwt/dune
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
(rule
(targets rpc_schema.ml rpc_schema.mli)
(deps rpc_schema.capnp)
(action (run capnpc -o %{bin:capnpc-ocaml} %{deps})))
(action (run capnp compile -o %{bin:capnpc-ocaml} %{deps})))

(rule
(targets persistent.ml persistent.mli)
(deps persistent.capnp)
(action (run capnpc -o %{bin:capnpc-ocaml} %{deps})))
(action (run capnp compile -o %{bin:capnpc-ocaml} %{deps})))
4 changes: 2 additions & 2 deletions examples/dune
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
(rule
(targets test_api.ml test_api.mli)
(deps test_api.capnp)
(action (run capnpc -o %{bin:capnpc-ocaml} %{deps})))
(action (run capnp compile -o %{bin:capnpc-ocaml} %{deps})))

(rule
(targets calculator.ml calculator.mli)
(deps calculator.capnp)
(action (run capnpc -o %{bin:capnpc-ocaml} %{deps})))
(action (run capnp compile -o %{bin:capnpc-ocaml} %{deps})))
2 changes: 1 addition & 1 deletion test-bin/echo/dune
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
(rule
(targets echo_api.ml echo_api.mli)
(deps echo_api.capnp)
(action (run capnpc -o %{bin:capnpc-ocaml} %{deps})))
(action (run capnp compile -o %{bin:capnpc-ocaml} %{deps})))

0 comments on commit 7a04a67

Please sign in to comment.