#chrome #native #messaging #protocols #host

chrome_native_messaging

Implementation of Chrome's Native Messaging protocol

5 unstable releases

0.3.0 Jun 27, 2022
0.2.0 Jan 7, 2021
0.1.2 Dec 12, 2017
0.1.1 Jun 27, 2017
0.1.0 Jun 27, 2017

#1326 in Web programming

Download history 2/week @ 2024-07-20 46/week @ 2024-07-27 2/week @ 2024-08-03 8/week @ 2024-08-10 21/week @ 2024-08-17 2/week @ 2024-08-24 15/week @ 2024-08-31 30/week @ 2024-09-07 1/week @ 2024-09-14 22/week @ 2024-09-21 15/week @ 2024-09-28 15/week @ 2024-10-05 59/week @ 2024-10-12 13/week @ 2024-10-19 44/week @ 2024-10-26 34/week @ 2024-11-02

153 downloads per month

MIT/Apache

9KB
117 lines

Chrome Native Messaging in Rust

Google Chrome allows native applications to interface with browser plugins as described in their documentation. This Rust crate provides simple functions for encoding/decoding JSON messages and handling errors during this process.

API Documentation

License

Licensed under either of

at your option.

Contribution

  • It would be great to integrate this with Tokio in order to make a fully asyncronous event loop. I haven't needed it personally so far, therefore it hasn't been worth my time to implement it.
  • Currently there are no integration tests with Chrome itself, to make sure that the protocol is implemented correctly. I wasn't sure how to achieve this easily, but if anybody has a suggestion then it would be welcomed.
  • All contributions/suggestions welcome!!

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0.7–1.6MB
~36K SLoC