Skip to content

Commit 2cb5906

Browse files
emmanuel-ferdmanShahanaFarooqui
authored andcommitted
doc: update reference to the generator code
Changelog-None. Signed-off-by: Emmanuel Ferdman <[email protected]>
1 parent 4f0f846 commit 2cb5906

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/contribute-to-core-lightning/code-generation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The manpages are generated from the JSON schemas using the [`fromschema`](https:
4545

4646
### `cln-rpc`
4747

48-
We use `msggen` to generate the Rust bindings crate [`cln-rpc`](https://github.com/ElementsProject/lightning/tree/master/cln-rpc). These bindings contain the stubs for the JSON-RPC methods, as well as types for the request and response structs. The [generator code](https://github.com/ElementsProject/lightning/blob/master/contrib/msggen/msggen/gen/rust.py) maps each abstract JSON-RPC type to a Rust type, minimizing size (e.g., binary data is hex-decoded).
48+
We use `msggen` to generate the Rust bindings crate [`cln-rpc`](https://github.com/ElementsProject/lightning/tree/master/cln-rpc). These bindings contain the stubs for the JSON-RPC methods, as well as types for the request and response structs. The [generator code](https://github.com/ElementsProject/lightning/blob/master/contrib/msggen/msggen/gen/rpc/rust.py) maps each abstract JSON-RPC type to a Rust type, minimizing size (e.g., binary data is hex-decoded).
4949

5050
The calling pattern follows the `call(req_obj) -> resp_obj` format, and the individual arguments are not expanded. For more ergonomic handling of generic requests and responses we also define the `Request` and `Response` enumerations, so you can hand them to a generic function without having to resort to dynamic dispatch.
5151

0 commit comments

Comments
 (0)