1
Fork 0

Compare commits

..

5 Commits

Author SHA1 Message Date
Bauke e732623802
Version 1.0.0! 2022-10-03 00:26:22 +02:00
Bauke 7623cb6b3e
Rename to webextension-native-messaging. 2022-10-03 00:25:39 +02:00
Bauke c4f8feab8b
Rewrite readme. 2022-10-03 00:18:16 +02:00
Bauke ed52651e7f
Add Cargo.locl to gitignore. 2022-10-03 00:16:14 +02:00
Bauke f4b1b240a7
Update license year and email. 2022-10-03 00:11:45 +02:00
5 changed files with 13 additions and 28 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
# Generated by Cargo
Cargo.lock
debug/
target/

View File

@ -1,11 +1,11 @@
# https://doc.rust-lang.org/cargo/reference/manifest.html
[package]
name = "web-ext-native-messaging"
name = "webextension-native-messaging"
description = "WebExtension native messaging library for Rust."
repository = "https://git.bauke.xyz/Holllo/web-ext-native-messaging"
repository = "https://git.bauke.xyz/Holllo/webextension-native-messaging"
license = "MIT OR Apache-2.0"
version = "0.1.0"
version = "1.0.0"
authors = ["Holllo <helllo@holllo.org>"]
edition = "2021"

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2021 Holllo <helllo@holllo.cc>
Copyright (c) 2021-2022 Holllo <helllo@holllo.org>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

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/webextension-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/webextension-native-messaging/src/branch/main/LICENSE-Apache) and [LICENSE-MIT](https://git.bauke.xyz/Holllo/webextension-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};