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
|
# Generated by Cargo
|
||||||
|
Cargo.lock
|
||||||
debug/
|
debug/
|
||||||
target/
|
target/
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
# https://doc.rust-lang.org/cargo/reference/manifest.html
|
# https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "web-ext-native-messaging"
|
name = "webextension-native-messaging"
|
||||||
description = "WebExtension native messaging library for Rust."
|
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"
|
license = "MIT OR Apache-2.0"
|
||||||
version = "0.1.0"
|
version = "1.0.0"
|
||||||
authors = ["Holllo <helllo@holllo.org>"]
|
authors = ["Holllo <helllo@holllo.org>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
MIT License
|
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
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
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
|
## License
|
||||||
|
|
||||||
Licensed under either of
|
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.
|
||||||
|
|
||||||
- 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.
|
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
#![forbid(unsafe_code)]
|
#![forbid(unsafe_code)]
|
||||||
#![warn(missing_docs, clippy::missing_docs_in_private_items)]
|
#![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.
|
//! > **WebExtension native messaging library for Rust.**
|
||||||
//!
|
|
||||||
//! [native messaging]: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Native_messaging#app_side
|
|
||||||
//!
|
//!
|
||||||
//! ## Reading
|
//! ## Reading
|
||||||
//!
|
//!
|
||||||
|
@ -52,10 +50,7 @@
|
||||||
//!
|
//!
|
||||||
//! [native messaging documentation]: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Native_messaging
|
//! [native messaging documentation]: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Native_messaging
|
||||||
|
|
||||||
use std::{
|
use std::io::{Read, Write};
|
||||||
convert::TryInto,
|
|
||||||
io::{Read, Write},
|
|
||||||
};
|
|
||||||
|
|
||||||
use byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt};
|
use byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue