Skip to content

Commit

Permalink
Merge pull request #13 from quartiq/rs/issue-12/serde-json-core
Browse files Browse the repository at this point in the history
fixing serde_json_core issue and preparing for release
  • Loading branch information
ryan-summers authored Dec 6, 2022
2 parents b78f957 + 4d141da commit ba2e4d9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [0.1.1] - 2022-12-06

### Added
* All registered command topics are now published upon connection with the broker or when the
Expand All @@ -14,10 +14,12 @@ command is registered.
### Fixed
* [#3](https://github.com/quartiq/minireq/issues/3) Fixed an issue where large responses would trigger an internal panic
* [#7](https://github.com/quartiq/minireq/issues/7) Fixed serialization of responses so they are readable
* [#12](https://github.com/quartiq/minireq/issues/12) `serde_json_core` is now re-exported at the
crate root.

## [0.1.0] - 2022-03-28

Library initially released on crates.io

[Unreleased]: https://github.com/quartiq/minireq/compare/v0.1.0...HEAD
[0.1.1]: https://github.com/quartiq/minireq/releases/tag/v0.1.1
[0.1.0]: https://github.com/quartiq/minireq/releases/tag/v0.1.0
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "minireq"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
authors = ["Ryan Summers <ryan.summers@vertigo-designs.com>"]
license = "MIT"
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
//! data: &[u8]
//! ) -> Result<minireq::Response<128>, Error> {
//! // Deserialize the request.
//! let mut request: Request = serde_json_core::from_slice(data)?.0;
//! let mut request: Request = minireq::serde_json_core::from_slice(data)?.0;
//!
//! request.data = request.data.wrapping_add(1);
//!
Expand Down Expand Up @@ -77,12 +77,12 @@ use minimq::{
embedded_time, QoS,
};

use serde_json_core::heapless::String;

use log::{info, warn};
use serde_json_core::heapless::String;

pub mod response;
pub use response::Response;
pub use serde_json_core;

// The maximum topic length of any settings path.
const MAX_TOPIC_LENGTH: usize = 128;
Expand Down

0 comments on commit ba2e4d9

Please sign in to comment.