-
Notifications
You must be signed in to change notification settings - Fork 1
Examples
Rylan Meilutis edited this page Jan 25, 2026
·
16 revisions
This page points to runnable examples and suggests a learning path.
c-example-code/
What it demonstrates:
- Building and linking the staticlib.
- Creating and sending packets.
- Receiving and dispatching to handlers.
Suggested first steps:
- Build the library with
build.pyor CMake. - Compile the example and run it locally.
- Watch the output to see packet creation and handling.
python-example/
What it demonstrates:
- Installing the Python package.
- Logging packets and decoding values.
- Using the generated enums.
Suggested first steps:
- Build Python bindings with
build.py pythonorbuild.py maturin-install. - Run the example script.
- Inspect printed packets to see decoded values.
If you want a minimal Rust example, start with docs/wiki/Usage-Rust.md and build a small router with one endpoint handler.
Recommended structure:
- Define one
EndpointHandlerfor a singleDataEndpoint. - Create a router in sink mode.
- Call
log_*with a typed payload. - Call
rx_serializedwith the bytes you just sent (loopback).
- Read docs/wiki/Overview.md
- Read docs/wiki/Concepts.md
- Try one example in your target language
- Read docs/wiki/technical/Architecture.md for the implementation details