Skip to content

Commit

Permalink
Merge pull request #25 from MathiasKoch/release/docs
Browse files Browse the repository at this point in the history
Add Changelog entry and readme section
  • Loading branch information
00imvj00 authored Mar 18, 2020
2 parents fcb39ce + 5eab68a commit c1f5e56
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
method already existed but now comes from the `std::convert::TryFrom` trait.
* `encode()` now takes anything that implements the `BufMut` trait, not just a `ByteMut` struct. For
technical reasons, `decode()` still takes `BytesMut`.
* Added option to opt-out of std library, allowing usage in `#[no_std]` projects, at the only cost
of giving up the `Error` trait from std as well as `std::io` integration.

## Bugfixes

Expand Down
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
name = "mqttrs"
version = "0.2.0"
authors = ["00imvj00 <vijaybambhaniya007@gmail.com>",
"Vincent de Phily <moltonel@gmail.com>"]
"Vincent de Phily <moltonel@gmail.com>",
"Mathias Koch <smilykoch@gmail.com>"]
edition = "2018"
description = "Mqtt protocol encoding and decoding"
readme = "README.md"
homepage = "https://github.com/00imvj00/mqttrs"
repository = "https://github.com/00imvj00/mqttrs"
documentation = "https://docs.rs/mqttrs"
keywords = ["mqtt", "pubsub", "publish-subscribe", "codec"]
categories = ["encoding", "network-programming"]
categories = ["encoding", "network-programming", "no-std"]
license = "Apache-2.0"

[features]
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,12 @@ subscriptions...).

This doesn't add mqtt as a serde data format; you still need to use the `mqttrs::{decode,encode}`
functions.

## Optional `#[no_std]` support.

Use `mqttrs = { version = "0.2", default-features = false }` in your `Cargo.toml` to remove the
default `std` feature.

Disabling this feature comes with the cost of not implementing the `std::error::Error` trait,
as well as not supporting `std::io` read and write. This allows usage in embedded devices
where the standard library is not available.

0 comments on commit c1f5e56

Please sign in to comment.