File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change 22
33## What's this
44
5- The ` cardano-rpc ` package provides client and server haskell modules for gRPC interface of ` cardano-node ` .
5+ The ` cardano-rpc ` package provides client and server haskell modules for gRPC interface of ` cardano-node ` .
66It implements [ UTxO RPC] ( https://utxorpc.org/introduction ) protobuf communication protocol specification.
77
88## Building
@@ -14,7 +14,27 @@ You need the following dependencies installed on your system:
1414- [ ` snappy ` ] ( https://github.com/google/snappy ) development files (` libsnappy-dev ` in Ubuntu)
1515- [ ` protobuf ` ] ( https://developers.google.com/protocol-buffers/ ) compiler (` protobuf-compiler ` in Ubuntu)
1616
17- Then do:
17+ ### Generating the Haskell code from proto definitions
18+
19+ You need to install ` buf ` and ` proto-lens-protoc ` .
20+ 1 . Follow the ` buf ` installation guide at: https://buf.build/docs/cli/installation/
21+ 1 . To install Haskell protobuf code compiler:
22+ ``` bash
23+ cabal install proto-lens-protoc
24+ ```
25+
26+ Then you can generate Haskell code using:
27+ ``` bash
28+ ( cd cardano-rpc/ ; buf generate proto )
29+ ```
30+
31+
32+ This will output the Haskell code into `cardano-rpc/
33+
34+ ### Building the haskell code
35+
36+ To build the package use the following command:
37+
1838``` bash
1939cabal build cardano-rpc
2040```
You can’t perform that action at this time.
0 commit comments