Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/duckfromdiscord/natemess
Rust crate for Firefox's Native messaging protocol for browser extensions
https://github.com/duckfromdiscord/natemess
browser-extension firefox native-messaging native-messaging-host nativemessaging rust rust-crate
Last synced: 13 days ago
JSON representation
Rust crate for Firefox's Native messaging protocol for browser extensions
- Host: GitHub
- URL: https://github.com/duckfromdiscord/natemess
- Owner: duckfromdiscord
- Created: 2024-10-28T05:20:32.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-28T15:02:48.000Z (3 months ago)
- Last Synced: 2024-11-18T07:15:27.669Z (3 months ago)
- Topics: browser-extension, firefox, native-messaging, native-messaging-host, nativemessaging, rust, rust-crate
- Language: Rust
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# natemess
natemess packages the setup needed to communicate with your browser extension over [Native messaging](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Native_messaging) into a simple async (with `tokio`) Rust library crate. The `natemess::install` module allows you to create the Windows registry keys required to let Firefox know your program exists, and `natemess::io` will communicate with Firefox over STDIO as long as your program does not output anything else to STDOUT when called by the browser.
Some of the stdio handling code came from [guest271314/NativeMessagingHosts](https://github.com/guest271314/NativeMessagingHosts/blob/main/nm_rust.rs). Everything had to be adapted to async Rust.