nrtm-parser is a client library to work with the Near Real Time Mirroring protocol versions 2 and 3 event streams. It is not, in itself, a client, but you can build clients with it.
It can be plugged into a source of NRTMv2/3 updates, and will provide structured objects describing the updates, with the raw RPSL string attached.
It has support for parsing in a synchronous fashion, when for instance you already have all the data collected in a file.
It also has support for parsing directly from tokio asynchronously readable objects (i.e TCP Streams for example). You can enable this capability via the async-streaming feature.
This crate is built on:
- the Pest parser crate
- tokio, tokio-util and tokio-stream for the async features
You can find some code examples in the integration tests: