3 unstable releases

0.2.0 Nov 15, 2024
0.1.1 Oct 13, 2024
0.1.0 Oct 2, 2024

#292 in Text editors

Download history 187/week @ 2024-09-30 84/week @ 2024-10-07 138/week @ 2024-10-14 1/week @ 2024-10-21 1/week @ 2024-10-28 28/week @ 2024-11-04 109/week @ 2024-11-11 48/week @ 2024-11-18 13/week @ 2024-11-25 9/week @ 2024-12-02 17/week @ 2024-12-09 42/week @ 2024-12-16

85 downloads per month
Used in 3 crates (2 directly)

MIT license

8KB
132 lines

ad_event :: a shared event format for ad and client programs

Example Format

M L 160 173 14 | screenshot.png
{"source":"M","kind":"L","ch_from":169,"ch_to":173,"truncated":false,"txt":"screenshot.png"}
#!/usr/bin/env sh

9p read ad/buffers/1/event | while read -r line; do
    echo "got event: $line"
    txt=$(echo "$line" | jq -r '.txt')
    if [ "$txt" = "README.md" ]; then
        echo "  > allowing event"
        echo "$line" | 9p write ad/buffers/1/event
    else
        echo "  > suppressing event"
    fi
done

lib.rs:

A shared event message format between ad and clients

Dependencies

~0.7–1.6MB
~34K SLoC