#zero-copy #nostr #parser #content

shatter

A fast, zero-copy nostr content parser

3 releases

0.1.2 Jul 7, 2023
0.1.1 Jul 3, 2023
0.1.0 Jul 3, 2023

#70 in #nostr

MIT license

21KB
524 lines

shatter

A fast, zero-copy nostr content parser.


lib.rs:

This crate is a fast, zero-copy nostr content parser. What is a nostr content parser? There can be many elements within the body of a note on nostr, and to render them properly they need to be parsed out. shatter will find all the locations of the elements of interest and mark them so that can pick them out and render them properly.

Dependencies

~2.8–4MB
~70K SLoC