| 1 |
# Change Log |
| 2 |
All notable changes to this project will be documented in this file. |
| 3 |
This project adheres to [Semantic Versioning](http://semver.org/). |
| 4 |
|
| 5 |
## Unreleased (0.8.11) |
| 6 |
### Added |
| 7 |
- Implemeneted support for `#![no_std]` in `rmpv` |
| 8 |
- Adds new `feature="std"` (on by default) |
| 9 |
- Introduces new `RmpRead` and `RmpWrite` traits. |
| 10 |
- Needed because `std::io::Read` (and Write) are missing on `#![no_std]` |
| 11 |
- Introduces new `Bytes` and `ByteBuf` wrappers, that implement RmpRead/RmpWrite for no\_std targets. |
| 12 |
|
| 13 |
## 0.8.6 - 2017-04-23 |
| 14 |
### Added |
| 15 |
- New `rmp::decode::read_str_from_slice` function for zero-copy reading strings from slices. |
| 16 |
|
| 17 |
### Changed |
| 18 |
- Deprecate `rmp::decode::read_str_ref`, because it's useless and inconvenient. |
| 19 |
|
| 20 |
## 0.8.5 - 2017-03-13 |
| 21 |
### Fixed |
| 22 |
- Fix compilation on rustc 1.13.0. |
| 23 |
|
| 24 |
## 0.8.4 - 2017-03-09 |
| 25 |
### Added |
| 26 |
- Derive `Debug` for `MarkerReadError`. |
| 27 |
|
| 28 |
## 0.8.3 - 2017-03-04 |
| 29 |
### Fixed |
| 30 |
- Fixed `write_sint`, so it should mark positive values as unsigned integers. |
| 31 |
Before this change it marked signed integers larger than `4294967296` with I64 marker, which is not consistent with other MessagePack implementations. |
| 32 |
Now it should mark such integers with U64 marker. |
| 33 |
|
| 34 |
## 0.8.2 - 2017-02-01 |
| 35 |
### Added |
| 36 |
- Conversion from `ValueWriteError` into I/O error. |
| 37 |
|
| 38 |
## 0.8.1 - 2017-01-05 |
| 39 |
### Changed |
| 40 |
- Fixed docs link. |
| 41 |
|
| 42 |
## 0.8.0 - 2017-01-05 |
| 43 |
### Added |
| 44 |
- Marker now implements `From` and `Into` traits for `u8`. |
| 45 |
- Add `read_int` function, which allows to read integer values and automatically cast to the expected result type even if they aren't the same. An additional `OutOfRange` error will be returned in the case of failed numeric cast. |
| 46 |
- Add `NumValueReadError` enum with additional `OutOfRange` variant to be able to detect whether integer decoding failed because of out of range. |
| 47 |
|
| 48 |
### Changed |
| 49 |
- Update `byteorder` dependency to 1.0. |
| 50 |
- Unexpected EOF variant has been merged with the default one in the I/O Error enum. |
| 51 |
- Function `write_sint` now encodes 64-bit signed integers using the most compact representation. |
| 52 |
- Function `write_uint` now encodes 64-bit unsigned integers using the most compact representation. |
| 53 |
- Rename `read_array_size` function to `read_array_len` for consistency. |
| 54 |
- Rename `read_map_size` function to `read_map_len` for consistency. |
| 55 |
- Make `FixedValueWriteError` struct private. All functions, that previously returned such kind of error now return the Standard I/O error. |
| 56 |
|
| 57 |
### Removed |
| 58 |
- Move `Value` and `ValueRef` enums and associated functions into the separate `rmpv` crate. |
| 59 |
- Remove conversions from `byteorder` crate errors, because since 0.5 there are no such errors. |
| 60 |
- Remove `write_sint_eff` function - its functionality can now be done using `write_sint` instead. |
| 61 |
- Remove `write_uint_eff` function - its functionality can now be done using `write_uint` instead. |
| 62 |
- Integral functions like `read_*_loosely` and `read_*_fit` were removed in favor of generic `read_int` function, which allows to read integral values and cast them to the specified result type even if they aren't the same. |
| 63 |
- Remove `read_bin_borrow` function. |
| 64 |
|
| 65 |
## 0.7.5 - 2016-07-24 |
| 66 |
### Added |
| 67 |
- Add `is_*` methods for Value for checking its underlying value without explicit matching. |
| 68 |
- Add `as_*` methods for Value for borrowing its underlying value. |
| 69 |
- Value is now indexable by integer. |
| 70 |
|
| 71 |
## 0.7.4 - 2016-07-18 |
| 72 |
### Added |
| 73 |
- Value now can be initialized from primitive values using From trait. |
| 74 |
|
| 75 |
## 0.7.3 - 2015-09-23 |
| 76 |
### Changed |
| 77 |
- Restricted upper version limit for dependencies. |
| 78 |
|
| 79 |
## 0.7.2 - 2015-09-23 |
| 80 |
### Added |
| 81 |
- Implemented `Display` trait for `Value`. |
| 82 |
|
| 83 |
## 0.7.1 - 2015-09-11 |
| 84 |
### Changed |
| 85 |
- Use `to_owned` instead of `to_string` while converting `ValueRef` into `Value`. |
| 86 |
This change improves `ValueRef::to_owned()` method performance by approximately 10-20%.s Also after this change it's cheaper to decode directly into `ValueRef` with further converting to owned value rather than decoding directly into `Value`. |
| 87 |
|
| 88 |
## 0.7.0 - 2015-08-24 |
| 89 |
### Changed |
| 90 |
- The big single crate has been refactored, which results in three crates: `rmp`, `rmp-serialize` and `rmp-serde`. |
| 91 |
|
| 92 |
## 0.6.0 - 2015-08-17 |
| 93 |
### Added |
| 94 |
- Initial support for [Serde](https://github.com/serde-rs/serde) serializer and deserializer. |
| 95 |
- Efficient bytes serialization with Serde. |
| 96 |
- Efficient binaries deserialization with Serde using `ByteBuf`. |
| 97 |
- Rust serialize Decoder now can provide the underlying reader both by reference or by value, destroying itself in the last case. |
| 98 |
|
| 99 |
### Changed |
| 100 |
- Update well-formness for `BigEndianRead` trait to be implemented only for sized types. |
| 101 |
- Renamed `PositiveFixnum` marker to `FixPos`. |
| 102 |
- Renamed `NegativeFixnum` marker to `FixNeg`. |
| 103 |
- Renamed `FixedString` marker to `FixStr`. |
| 104 |
- Renamed `FixedArray` marker to `FixArray`. |
| 105 |
- Renamed `FixedMap` to `FixMap`. |
| 106 |
- Minor documentation updates and markdown fixes. |
| 107 |
|
| 108 |
## 0.5.1 - 2015-08-10 |
| 109 |
### Changed |
| 110 |
- Now the `rustc_serialize::Encoder` should encode signed integers using the most effective underlying representation. |
| 111 |
- Now the `rustc_serialize::Decoder` should properly map integers to the result type if the decoded value fits in |
| 112 |
result type's range. |
| 113 |
|
| 114 |
## 0.5.0 - 2015-08-01 |
| 115 |
### Added |
| 116 |
- New `ValueRef` value struct represents MessagePack'ed value, but unlike an owning `Value` it owns nothing except its |
| 117 |
structure. It means that all strings and binaries it contains are borrowed from the byte array from which the value |
| 118 |
was created. |
| 119 |
- New `BorrowRead` trait, which looks like a standard `BufRead` but unlike the standard this has an explicit internal |
| 120 |
buffer lifetime, which allows to borrow from underlying buffer while mutating the type. |
| 121 |
- Encoding function for `ValueRef` with its own error category. |
| 122 |
- Decoding function for `ValueRef` with its own error category. |
| 123 |
- Conversion method from `ValueRef` to `Value`. |
| 124 |
- More benchmarks and tests. |
| 125 |
|
| 126 |
### Changed |
| 127 |
- Derive `Copy` trait for `Integer` and `Float` enums. |
| 128 |
|
| 129 |
## 0.4.0 - 2015-07-17 |
| 130 |
### Added |
| 131 |
- Low level `write_str` function allows to serialize the UTF-8 encoded strings the most efficient way. |
| 132 |
- Low level `write_bin` function allows to serialize the binary array the most efficient way. |
| 133 |
- Implemented `std::error::Error` trait for error types. |
| 134 |
|
| 135 |
## 0.3.2 - 2015-07-05 |
| 136 |
### Changed |
| 137 |
- Encoder now should return proper error types. |
| 138 |
|
| 139 |
## 0.3.1 - 2015-06-28 |
| 140 |
### Changed |
| 141 |
- Stabilizing enum serialization/deserialization. Now every enum is serialized as [int, [args...]]. |
| 142 |
- Suppressed some warnings appeared on updated compiler. |
| 143 |
|
| 144 |
## 0.3.0 - 2015-06-25 |
| 145 |
### Added |
| 146 |
- Enum serialization/deserialization. |
| 147 |
|
| 148 |
## 0.2.2 - 2015-06-15 |
| 149 |
### Changed |
| 150 |
- Minor integer decoding performance tweaking. |
| 151 |
|
| 152 |
## 0.2.1 - 2015-05-30 |
| 153 |
### Added |
| 154 |
- Benchmarking module. |
| 155 |
|
| 156 |
### Changed |
| 157 |
- Increased string decoding performance by ~30 times. |
| 158 |
- Exported `read_value` function to the `rmp::decode` module. |
| 159 |
- Exported `Value` struct to the root crate namespace. |
| 160 |
|
| 161 |
## 0.2.0 - 2015-05-27 |
| 162 |
### Added |
| 163 |
- Introducing a `Value` algebraic data type, which represents an owning MessagePack object. It can |
| 164 |
be found in `rmp::value` module. |
| 165 |
- The Value ADT encoding and decoding functions. |
| 166 |
- Low-level ext type decoders. |
| 167 |
|
| 168 |
## 0.1.1 - 2015-05-18 |
| 169 |
### Changed |
| 170 |
- Added documentation and repository site in Cargo.toml. |
| 171 |
- Added keywords to ease searching using crates.io. |
| 172 |
|
| 173 |
## 0.1.0 - 2015-05-15 |
| 174 |
### Added |
| 175 |
- Initial commit. |
| 176 |
- This CHANGELOG file to hopefully serve as an evolving example of a standardized open source |
| 177 |
project CHANGELOG. |