mirror of
https://github.com/zap-proto/ocaml-rpc.git
synced 2026-10-30 15:04:28 +00:00
All the example code is now in the repository, making it easy to people to look at the solutions if they get stuck, and allowing the tutorial to be tested automatically. The tutorial was also too long; it has now been split into two parts.
22 lines
411 B
OCaml
22 lines
411 B
OCaml
(* Pre-build demos to avoid capnp compiler warnings about PWD *)
|
|
|
|
#require "unix";;
|
|
|
|
let examples = [
|
|
"v1";
|
|
"v2";
|
|
"v3";
|
|
"v4";
|
|
"pipelining";
|
|
"sturdy-refs";
|
|
"sturdy-refs-2";
|
|
"sturdy-refs-3";
|
|
"sturdy-refs-4";
|
|
]
|
|
|
|
let () =
|
|
examples |> List.iter (fun ex ->
|
|
let cmd = Printf.sprintf "cd 'examples/%s' && dune build ./main.exe" ex in
|
|
ignore (Unix.system cmd : Unix.process_status)
|
|
)
|