diff --git a/README.md b/README.md index 074fa43..88a0c9b 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/source/lib.rs b/source/lib.rs index 738c074..8dcfe22 100644 --- a/source/lib.rs +++ b/source/lib.rs @@ -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};