Compare commits
5 Commits
ca447df525
...
e732623802
Author | SHA1 | Date |
---|---|---|
Bauke | e732623802 | |
Bauke | 7623cb6b3e | |
Bauke | c4f8feab8b | |
Bauke | ed52651e7f | |
Bauke | f4b1b240a7 |
|
@ -1,4 +1,5 @@
|
|||
# Generated by Cargo
|
||||
Cargo.lock
|
||||
debug/
|
||||
target/
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
21
README.md
21
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/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.
|
||||
|
|
|
@ -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};
|
||||
|
||||
|
|
Loading…
Reference in New Issue