Skip to content

The RPC crate allows to create RPC servers and clients compatible with the ones from the Resto library (https://gitlab.com/nomadic-labs/resto) in OCaml, correctly handling streamed RPCs.

Notifications You must be signed in to change notification settings

jtcoolen/Ocaml-Rust-Json-HTTP-RPC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The RPC crate allows to create RPC servers and clients compatible with the ones from the Resto library (https://gitlab.com/nomadic-labs/resto) in OCaml, correctly handling streamed RPCs.



run ocaml server:
$ TEZOS_LOGS="* -> debug"; dune exec bin/main.exe
Mar 27 14:25:50.228: the RPC server is listening to ::ffff:127.0.0.1:8000


run rust client:
$ cargo run --bin bin_client
version: "v1.0/Unix/ocamlc.4.14.1"



========

run rust server:
$ cargo run --bin bin_server
Listening on http://127.0.0.1:3000


run ocaml client:
$ dune exec client
Version foobar

About

The RPC crate allows to create RPC servers and clients compatible with the ones from the Resto library (https://gitlab.com/nomadic-labs/resto) in OCaml, correctly handling streamed RPCs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published