Debian Codegraph @

CHANGELOG.md

raw symbols SCIP
1 # Changelog
2 All notable changes to this project will be documented in this file.
3
4 The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
7 ## Unreleased
8
9 ## [0.12.0] - 2025-11-12
10
11 ### API Changes
12
13 - Breaking: Removed the `ron::error::Error::Base64Error` variant. ([#566](https://github.com/ron-rs/ron/pull/566))
14 - Added `into_inner()` method to `ron::ser::Serializer` to retrieve the inner writer. ([#588](https://github.com/ron-rs/ron/pull/588))
15 - Removed the `base64` dependency. ([#566](https://github.com/ron-rs/ron/pull/566))
16
17 ### Format Changes
18
19 - **Format-Breaking:** Remote base64-encoded byte strings deserialisation, replaced by Rusty byte strings in v0.9.0 ([#566](https://github.com/ron-rs/ron/pull/566))
20
21 ### Bug Fixes
22
23 - Fixed untagged enum deserialisation for serde >= 1.0.220 with better serde content detection ([#582](https://github.com/ron-rs/ron/pull/582))
24
25 ## [0.11.0] - 2025-08-27
26
27 ### API Changes
28
29 - Breaking: `SpannedError` now stores the full error span in span: Span { start: Position, end: Position }`, to facilitate, e.g., language server highlighting of syntax errors.
30 - Breaking: Added `no_std` support via a new `std` feature (enabled by default). With default features disabled, you must enable the `std` feature to access `de::from_reader`, and the `std::io` operations on `Options`, such as `from_reader`, `from_reader_seed`, `to_io_writer`, and `to_io_writer_pretty` ([#567](https://github.com/ron-rs/ron/pull/567))
31 - Breaking: Fixed (again) `ron::value::Number` to ensure it is non-exhaustive, to avoid breaking `match`es when feature unification enables more of its variants than expected ([#568](https://github.com/ron-rs/ron/pull/568))
32
33 ### Examples
34
35 - Add a new example `file_read_write_vec.rs` for reading and writing `Vec<T>` to/from files. ([#573](https://github.com/ron-rs/ron/pull/573))
36
37 ## [0.10.1] - 2025-04-08
38
39 ### API Changes
40
41 - Add `ron::Options::to_io_writer` and `ron::Options::to_io_writer_pretty` to allow writing into an `io::Writer` ([#561](https://github.com/ron-rs/ron/pull/561))
42 - Breaking: `ron::value::Number` is now non-exhaustive, to avoid breaking `match`es when feature unification enables more of its variants than expected ([#564](https://github.com/ron-rs/ron/pull/564))
43
44 ## [0.9.0] - 2025-03-18
45
46 ### API Changes
47
48 - Add `ron::value::RawValue` helper type which can (de)serialize any valid RON ([#407](https://github.com/ron-rs/ron/pull/407))
49 - Add `escape_strings` option to `PrettyConfig` to allow serialising with or without escaping ([#426](https://github.com/ron-rs/ron/pull/426))
50 - Add `compact_maps` and `compact_structs` options to `PrettyConfig` to allow serialising maps and structs on a single line ([#448](https://github.com/ron-rs/ron/pull/448))
51 - Add minimal support for `#[serde(flatten)]` with roundtripping through RON maps ([#455](https://github.com/ron-rs/ron/pull/455))
52 - Add minimal roundtripping support for `#[serde(tag = "tag")]`, `#[serde(tag = "tag", content = "content")]`, and `#[serde(untagged)]` enums ([#451](https://github.com/ron-rs/ron/pull/451))
53 - Breaking: Expand the `value::Number` enum to explicitly encode all possible number types ([#479](https://github.com/ron-rs/ron/pull/479))
54 - Add `number_suffixes` option to `PrettyConfig` to allow serialising numbers with their explicit type suffix, e.g. `42i32` ([#481](https://github.com/ron-rs/ron/pull/481))
55 - Allow `ron::value::RawValue` to capture any whitespace to the left and right of a ron value ([#487](https://github.com/ron-rs/ron/pull/487))
56 - Breaking: Enforce that ron always writes valid UTF-8 ([#488](https://github.com/ron-rs/ron/pull/488))
57 - Add convenient `Value::from` impls ([#498](https://github.com/ron-rs/ron/pull/498))
58 - Add new extension `explicit_struct_names` which requires that struct names are included during deserialization ([#522](https://github.com/ron-rs/ron/pull/522))
59 - Add new path-based field metadata serialization support via `PrettyConfig` ([#544](https://github.com/ron-rs/ron/pull/544))
60 - Breaking: Change `PrettyConfig` so that `new_line`, `indentor` and `separator` are all `Cow<'static, str>` instead of `String` ([#546](https://github.com/ron-rs/ron/pull/546))
61
62 ### Format Changes
63
64 - [Non-API] Breaking: Treat `Some` like a newtype variant with `unwrap_variant_newtypes` ([#465](https://github.com/ron-rs/ron/pull/465))
65 - Allow parsing floating point literals with underscores ([#481](https://github.com/ron-rs/ron/pull/481))
66 - **Format-Breaking:** Switch from base64-encoded to Rusty byte strings, still allow base64 deserialising for now ([#438](https://github.com/ron-rs/ron/pull/438))
67 - Fix issue [#241](https://github.com/ron-rs/ron/issues/241) and allow parsing numbers with explicit type suffixes, e.g. `1u8` or `-1f32` ([#481](https://github.com/ron-rs/ron/pull/481))
68 - Add support for byte literals as strongly typed unsigned 8-bit integers ([#438](https://github.com/ron-rs/ron/pull/438))
69 - Fix issue [#321](https://github.com/ron-rs/ron/issues/321) and allow parsing UTF-8 identifiers ([#488](https://github.com/ron-rs/ron/pull/488))
70
71 ### Bug Fixes
72
73 - Fix parsing `r` as a self-describing struct or variant name (and not the start of a raw string) ([#465](https://github.com/ron-rs/ron/pull/465))
74 - Fix serialising raw strings containing a literal backslash ([#465](https://github.com/ron-rs/ron/pull/465))
75 - Fix serialising `None` inside a stack of nested `Option`s with `#![enable(implicit_some)]` enabled ([#465](https://github.com/ron-rs/ron/pull/465))
76 - Fix deserialising deserialising `A('/')` into a `ron::Value` ([#465](https://github.com/ron-rs/ron/pull/465))
77 - Fix issue [#445](https://github.com/ron-rs/ron/issues/445) and allow parsing `+unsigned` as an unsigned int ([#479](https://github.com/ron-rs/ron/pull/479))
78 - Fix serialising reserved identifiers `true`, `false`, `Some`, `None`, `inf`[`f32`|`f64`], and `Nan`[`f32`|`f64`] ([#487](https://github.com/ron-rs/ron/pull/487))
79 - Disallow unclosed line comments at the end of `ron::value::RawValue` ([#489](https://github.com/ron-rs/ron/pull/489))
80 - Fix parsing of struct/variant names starting in `None`, `Some`, `true`, or `false` ([#499](https://github.com/ron-rs/ron/pull/499))
81 - Fix deserialising owned string field names in structs, allowing deserializing into `serde_json::Value`s ([#511](https://github.com/ron-rs/ron/pull/512))
82
83 ### Miscellaneous
84
85 - Add CIFuzz GitHub action ([#429](https://github.com/ron-rs/ron/pull/429))
86 - Update the arbitrary fuzzer to check arbitrary serde data types, values, and `ron::ser::PrettyConfig`s ([#465](https://github.com/ron-rs/ron/pull/465))
87 - Add a benchmark for PRs that runs over the latest fuzzer corpus ([#465](https://github.com/ron-rs/ron/pull/465))
88 - Fuzz serde enum representations and collect current limitations in ron and serde ([#502](https://github.com/ron-rs/ron/pull/502))
89 - Update `base64` dependency to version 0.22 ([#529](https://github.com/ron-rs/ron/pull/529))
90 - Fix issue [#556](https://github.com/ron-rs/ron/issues/556) and update minium dependency versions ([#557](https://github.com/ron-rs/ron/pull/557))
91
92 ## [0.8.1] - 2023-08-17
93
94 - Fix issues [#277](https://github.com/ron-rs/ron/issues/277) and [#405](https://github.com/ron-rs/ron/issues/405) with `Value::Map` `IntoIter` and extraneous item check for `Value::Seq` ([#406](https://github.com/ron-rs/ron/pull/406))
95 - Fix issue [#401](https://github.com/ron-rs/ron/issues/401) with correct raw struct name identifier parsing ([#402](https://github.com/ron-rs/ron/pull/402))
96 - Fix issue [#410](https://github.com/ron-rs/ron/issues/410) trailing comma parsing in tuples and `Some` ([#412](https://github.com/ron-rs/ron/pull/412))
97 - Error instead of panic when deserializing non-identifiers as field names ([#415](https://github.com/ron-rs/ron/pull/415))
98 - [Non-API] Breaking: Fix issue [#307](https://github.com/ron-rs/ron/issues/307) stack overflow with explicit recursion limits in serialising and deserialising ([#420](https://github.com/ron-rs/ron/pull/420))
99 - Fix issue [#423](https://github.com/ron-rs/ron/issues/423) deserialising an identifier into a borrowed str ([#424](https://github.com/ron-rs/ron/pull/424))
100 - Bump MSRV to 1.57.0 and bump dependency: `base64` to 0.20 ([#431](https://github.com/ron-rs/ron/pull/431))
101 - Bump dependency `base64` to 0.21 ([#433](https://github.com/ron-rs/ron/pull/433))
102 - Depend on `serde_derive` directly to potentially enable more compilation parallelism ([#441](https://github.com/ron-rs/ron/pull/441))
103 - [Non-API] Breaking: Bump `bitflags` dependency to 2.0, changes `serde` impls of `Extensions` ([#443](https://github.com/ron-rs/ron/pull/443))
104 - Add `Map::retain` method ([#460](https://github.com/ron-rs/ron/pull/460))
105 - Bump MSRV to 1.64.0 and bump dependency: `indexmap` to 2.0 ([#459](https://github.com/ron-rs/ron/pull/459))
106
107 ## [0.8.0] - 2022-08-17
108
109 - Bump dependencies: `bitflags` to 1.3, `indexmap` to 1.9 ([#399](https://github.com/ron-rs/ron/pull/399))
110 - Add `integer128` feature that guards `i128` and `u128` ([#304](https://github.com/ron-rs/ron/pull/304), [#351](https://github.com/ron-rs/ron/pull/351))
111 - Fix issue [#265](https://github.com/ron-rs/ron/issues/265) with better missing comma error ([#353](https://github.com/ron-rs/ron/pull/353))
112 - Fix issue [#301](https://github.com/ron-rs/ron/issues/301) with better error messages ([#354](https://github.com/ron-rs/ron/pull/354))
113 - Fix issue [#337](https://github.com/ron-rs/ron/issues/337) by removing `decimal_floats` PrettyConfig option and unconditional decimals in floats ([#363](https://github.com/ron-rs/ron/pull/363))
114 - Fix issue [#203](https://github.com/ron-rs/ron/issues/203) with full de error positioning ([#356](https://github.com/ron-rs/ron/pull/356))
115 - Expand the `ron::Error` enum to distinguish `serde` errors like `NoSuchEnumVariant` and `MissingStructField` with error positioning ([#394](https://github.com/ron-rs/ron/pull/394))
116 - Bump MSRV to 1.56.0 ([#396](https://github.com/ron-rs/ron/pull/396))
117
118 ## [0.7.1] - 2022-06-15
119
120 - Add `struct_names` option to `PrettyConfig` ([#329](https://github.com/ron-rs/ron/pull/329))
121 - Fix newtype variant unwrapping around enum, seq and map ([#331](https://github.com/ron-rs/ron/pull/331))
122 - Implement `unwrap_newtypes` extension during serialization ([#333](https://github.com/ron-rs/ron/pull/333))
123 - Implement `unwrap_variant_newtypes` extension during serialization ([#336](https://github.com/ron-rs/ron/pull/336))
124 - Add `compact_arrays` ([#299](https://github.com/ron-rs/ron/pull/299)) and `separator` options to `PrettyConfig` ([#349](https://github.com/ron-rs/ron/pull/349))
125 - Fix issue [#338](https://github.com/ron-rs/ron/issues/338) value map roundtrip ([#341](https://github.com/ron-rs/ron/pull/341))
126 - Fix issue [#289](https://github.com/ron-rs/ron/issues/289) enumerate_arrays comments ([#344](https://github.com/ron-rs/ron/pull/344))
127 - Report struct name in expected struct error ([#342](https://github.com/ron-rs/ron/pull/342))
128 - Add `Options` builder to configure the RON serde roundtrip ([#343](https://github.com/ron-rs/ron/pull/343))
129 - Fix issue [#367](https://github.com/ron-rs/ron/issues/367) with eager implicit some ([#368](https://github.com/ron-rs/ron/pull/368))
130 - Fix issue [#359](https://github.com/ron-rs/ron/issues/359) with `DeserializeSeed` support ([#360](https://github.com/ron-rs/ron/pull/360))
131 - Fix issue [#370](https://github.com/ron-rs/ron/issues/370) with `FromStr`-equivalent float EBNF and `Error::FloatUnderscore` ([#371](https://github.com/ron-rs/ron/pull/371))
132 - Fix issue [#374](https://github.com/ron-rs/ron/issues/374) extraneous .0 for small floats ([#372](https://github.com/ron-rs/ron/pull/372))
133 - Deprecate `Serializer::new` ([#382](https://github.com/ron-rs/ron/issues/382))
134
135 ## [0.7.0] - 2021-10-22
136
137 - Add `unwrap_variant_newtypes` extension ([#319](https://github.com/ron-rs/ron/pull/319))
138 - Change MSRV to 1.36
139
140 ## [0.6.6] - 2021-10-21
141
142 - Fix serialization of raw identifiers ([#323](https://github.com/ron-rs/ron/pull/323))
143
144 ## [0.6.5] - 2021-09-09
145 - support serde renames that start with a digit
146
147 ## [0.6.3] - 2020-12-18
148 - bump `base64` dependency to 0.13
149
150 ## [0.6.2] - 2020-09-09
151
152 - Added `decimal_floats` PrettyConfig option, which always includes decimals in floats (`1.0` vs `1`) ([#237](https://github.com/ron-rs/ron/pull/237))
153 - Fixed EBNF grammar for raw strings ([#236](https://github.com/ron-rs/ron/pull/236), unsigned integers ([#248](https://github.com/ron-rs/ron/pull/248)), and nested comments ([#272](https://github.com/ron-rs/ron/pull/272))
154 - Added `ser::to_writer_pretty` ([#269](https://github.com/ron-rs/ron/pull/269))
155 - Sped up parsing using table predicates ([#276](https://github.com/ron-rs/ron/pull/276))
156
157 ## [0.6.1] - 2020-07-14
158
159 ### Fixes
160
161 - Fix array formatting regression ([#260](https://github.com/ron-rs/ron/pull/260))
162
163 ## [0.6.0] - 2020-05-21
164
165 ### Additions
166 - Implement integer support in Numbers ([#210](https://github.com/ron-rs/ron/pull/210))
167 - Port `ser::Serializer` to `io::Write` ([#206](https://github.com/ron-rs/ron/pull/206))
168 - Support i128 and u128 ([#219](https://github.com/ron-rs/ron/pull/219))
169 - Allow pretty ser to work with implicit-some extension ([#182](https://github.com/ron-rs/ron/pull/182))
170 - Make PrettyConfig future-proof ([#173](https://github.com/ron-rs/ron/pull/173))
171 - Use indexmap to preserve order (optional) ([#172](https://github.com/ron-rs/ron/pull/172))
172 - Add tests for different enum representations ([#166](https://github.com/ron-rs/ron/pull/166))
173 - Implement inf, -inf and NaN handling ([#163](https://github.com/ron-rs/ron/pull/163))
174 - Add VS code language tooling ([#160](https://github.com/ron-rs/ron/pull/160))
175 - Be smarter about integer deserialization ([#157](https://github.com/ron-rs/ron/pull/157))
176
177 ### Fixes
178 - Fix parsing of borrowed strings ([#228](https://github.com/ron-rs/ron/pull/228))
179 - Fix depth limit test for off-by-one fix ([#225](https://github.com/ron-rs/ron/pull/225))
180 - Remove deprecated uses of `Error::description` ([#208](https://github.com/ron-rs/ron/pull/208))
181 - Preserve ordering of map sequences ([#197](https://github.com/ron-rs/ron/pull/197))
182 - Remove unneeded Neg requirement for signed_integer ([#193](https://github.com/ron-rs/ron/pull/193))
183 - Ensure "Untagged tuple-like enum variants not deserializing correctly……" is fixed ([#170](https://github.com/ron-rs/ron/pull/170))
184
185 ### Changes
186 - Update `serde` requirement to 1.0.60 ([#226](https://github.com/ron-rs/ron/pull/226))
187 - Replace Travis with GitHub actions ([#223](https://github.com/ron-rs/ron/pull/223))
188 - Rename `format_doc_comments` to `format_code_in_doc_comment`
189 - Update base64 requirement from 0.11 to 0.12 ([#204](https://github.com/ron-rs/ron/pull/204))
190 - Update base64 requirement from 0.10 to 0.11 ([#195](https://github.com/ron-rs/ron/pull/195))
191 - Update `serde_bytes` to 0.11 ([#164](https://github.com/ron-rs/ron/pull/164))
192
193 ## [0.5.1] - 2019-04-05
194 ### Fixes
195 - Increase source compability from Rust `1.34.0` to `1.31.0` by not relying on `as _` imports ([#156](https://github.com/ron-rs/ron/pull/156))
196
197 ## [0.5.0] - 2019-03-31
198 ### Additions
199 - Don't insert new lines in empty arrays or maps ([#150](https://github.com/ron-rs/ron/pull/150))
200 ### Changes
201 - Transition to Rust 2018 ([#149](https://github.com/ron-rs/ron/pull/149))
202
203 ## [0.4.2] - 2019-03-01
204 ### Additions
205 - Add integer check for deserializer ([#148](https://github.com/ron-rs/ron/pull/148))
206 - Implement `Value::into_rust` ([#146](https://github.com/ron-rs/ron/pull/146))
207
208 ## [0.4.1] - 2019-01-09
209 ### Additions
210 - Allow underscores in integers ([#135](https://github.com/ron-rs/ron/pull/135))
211 - Added extension documentation ([#130](https://github.com/ron-rs/ron/pull/130))
212 ### Changes
213 - Move sublime text syntax to separate repo ([#138](https://github.com/ron-rs/ron/pull/138))
214 - Update `base64` crate dependency to 0.10 ([#137](https://github.com/ron-rs/ron/pull/137))
215
216 ## [0.4.0] - 2018-08-11
217 ### Fixes
218 - Handle tuple deserialization in deserialize_any properly ([#124](https://github.com/ron-rs/ron/pull/124))
219 ### Changes
220 - Add raw string syntax to grammar ([#125](https://github.com/ron-rs/ron/pull/125))
221 - Reexport `Value` at root ([#120](https://github.com/ron-rs/ron/pull/120))
222
223 ## [0.3.0] - 2018-06-15
224 ### Additions
225 - `serde_bytes` fields to be encoded using base64. ([#109](https://github.com/ron-rs/ron/pull/109))
226 ### Fixes
227 - Allow raw string literals ([#114](https://github.com/ron-rs/ron/pull/114))
228 ### Changes
229 - Now depends on `base64` 0.9.2.
230
231 ## [0.2.2] - 2018-05-19
232 ### Fixes
233 - Allow whitespace in newtype variants ([#104](https://github.com/ron-rs/ron/pull/104))
234
235 ## [0.2.1] - 2018-05-04
236 ### Additions
237 - Add multi-line comments ([#98](https://github.com/ron-rs/ron/pull/98))
238 ### Fixes
239 - Allow more whitespace inside newtypes ([#103](https://github.com/ron-rs/ron/pull/103))
240
241 ## [0.2.0] - 2018-02-14
242 ### Additions
243 - Limit the pretty depth ([#93](https://github.com/ron-rs/ron/pull/93))
244 - Add support for `\x??` and improve unicode escapes ([#84](https://github.com/ron-rs/ron/pull/84))
245
246 ## [0.1.7] - 2018-01-24
247 ### Additions
248 - Deep array indexing ([#88](https://github.com/ron-rs/ron/pull/88))
249 - Pretty sequence indexing ([#86](https://github.com/ron-rs/ron/pull/86))
250 - Add unicode support for chars ([#80](https://github.com/ron-rs/ron/pull/80))
251 - Add support for hex, oct and bin numbers ([#78](https://github.com/ron-rs/ron/pull/78))
252 - Allow implicit Some ([#75](https://github.com/ron-rs/ron/pull/75))
253 - Add grammar specification ([#73](https://github.com/ron-rs/ron/pull/73))
254 - Add extension support and first extension, unwrap_newtypes ([#72](https://github.com/ron-rs/ron/pull/72))
255 ### Fixes
256 - Directly serialize `f32` ([#81](https://github.com/ron-rs/ron/pull/81))
257
258 ## [0.1.6] - 2018-01-24
259 ### Additions
260 - Implement sequence indexing ([#87](https://github.com/ron-rs/ron/pull/87))
261 ### Fixes
262 - Remove ident variable from Sublime syntax ([#71](https://github.com/ron-rs/ron/pull/71))
263
264 ## [0.1.5] - 2017-12-27
265 ### Additions
266 - Allow creating a new serializer ([#70](https://github.com/ron-rs/ron/pull/70))
267 - Sublime syntax highlighter ([#67](https://github.com/ron-rs/ron/pull/67))
268 - Add support for integers ([#65](https://github.com/ron-rs/ron/pull/65))
269 - Implement `Deserializer` for `Value` ([#64](https://github.com/ron-rs/ron/pull/64))
270
271 ## [0.1.4] - 2017-10-12
272 ### Additions
273 - Add `PrettyConfig` ([#61](https://github.com/ron-rs/ron/pull/61))
274 - impl `deserialize_ignored_any` for `id` ([#60](https://github.com/ron-rs/ron/pull/60))
275 ### Fixes
276 - Fix deserializing of ignored fields ([#62](https://github.com/ron-rs/ron/pull/62))
277
278 ## [0.1.3] - 2017-10-06
279 ### Fixes
280 - Removed indentation from tuple variant pretty encoder ([#57](https://github.com/ron-rs/ron/pull/57))
281
282 ## [0.1.2] - 2017-10-06
283 ### Fixes
284 - Fix decoding of string literals ([#56](https://github.com/ron-rs/ron/pull/56))
285 - Add `Value` and implement `deserialize_any` ([#53](https://github.com/ron-rs/ron/pull/53))
286
287 ## [0.1.1] - 2017-08-07
288 ### Fixes
289 - Be more permissive wrt whitespace decoding ([#41](https://github.com/ron-rs/ron/pull/41))
290 ### Additions
291 - Add utility function to deserialize from `std::io::Read` ([#42](https://github.com/ron-rs/ron/pull/42))
292
293 ## [0.1.0] - 2015-08-04
294 ### Changes
295 - Reorganize deserialization modules ([#30](https://github.com/ron-rs/ron/pull/30))
296 - Rework deserializer not to require `pom` crate [#27](https://github.com/ron-rs/ron/pull/27), ([#38](https://github.com/ron-rs/ron/pull/38))
297 - Dual license under Apache 2.0 and MIT ([#26](https://github.com/ron-rs/ron/pull/26))
298 ### Fixes
299 - Use CRLF for serializatio on Windows ([#32](https://github.com/ron-rs/ron/pull/32))
300 - Fix bors-ng to work with travis ([#31](https://github.com/ron-rs/ron/pull/31))
301 - Handle escapes ([#23](https://github.com/ron-rs/ron/pull/23))
302 ### Additions
303 - Improve error reporting ([#29](https://github.com/ron-rs/ron/pull/29))
304 - Allow decoding of comments ([#28](https://github.com/ron-rs/ron/pull/28))
305 - Add `pretty` option to serializer ([#25](https://github.com/ron-rs/ron/pull/25))
306 - Add roundtrip tests ([#24](https://github.com/ron-rs/ron/pull/24))
307
308 ## [0.0.1] - 2015-07-30
309 Initial release