Crate chrome_native_messaging

Source

Macros§

send
Writes the given JSON data to stdout, thereby ‘sending’ a message back to Chrome. If you are on stable, then you also need to import macros from the serde_json crate.

Enums§

Error

Functions§

event_loop
Starts an ‘event loop’ which listens and writes to stdin and stdout respectively.
read_input
Reads input from a stream, decoded according to Chrome’s own documentation on native messaging. (https://developer.chrome.com/extensions/nativeMessaging)
send_message
Writes an output to a stream, encoded according to Chrome’s documentation on native messaging. (https://developer.chrome.com/extensions/nativeMessaging) Takes a custom value which implements serde::Serialize.