1
Fork 0

Rewrite readme.

This commit is contained in:
Bauke 2022-10-03 00:18:16 +02:00
parent ed52651e7f
commit c4f8feab8b
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
2 changed files with 8 additions and 24 deletions

View File

@ -1,22 +1,11 @@
# web-ext-native-messaging
# WebExtension 🛰 Native Messaging
WebExtension native messaging with serde_json as the (de)serializer.
> **WebExtension native messaging library for Rust.**
## Documentation
## Usage
See [docs.rs](https://docs.rs/web-ext-native-messaging) for documentation.
For documentation and examples see [docs.rs](https://docs.rs/web-ext-native-messaging).
## License
Licensed under either of
- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or https://opensource.org/licenses/MIT)
at your option.
#### Contribution
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.
Distributed under the [Apache License 2.0](https://spdx.org/licenses/Apache-2.0.html) and [MIT](https://spdx.org/licenses/MIT.html) licenses, see [LICENSE-Apache](https://git.bauke.xyz/Holllo/web-ext-native-messaging/src/branch/main/LICENSE-Apache) and [LICENSE-MIT](https://git.bauke.xyz/Holllo/web-ext-native-messaging/src/branch/main/LICENSE-MIT) for more information.

View File

@ -1,11 +1,9 @@
#![forbid(unsafe_code)]
#![warn(missing_docs, clippy::missing_docs_in_private_items)]
//! # web-ext-native-messaging
//! # WebExtension Native Messaging
//!
//! WebExtension [native messaging] with [`serde_json`] as the (de)serializer.
//!
//! [native messaging]: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Native_messaging#app_side
//! > **WebExtension native messaging library for Rust.**
//!
//! ## Reading
//!
@ -52,10 +50,7 @@
//!
//! [native messaging documentation]: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Native_messaging
use std::{
convert::TryInto,
io::{Read, Write},
};
use std::io::{Read, Write};
use byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt};