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](https://keepachangelog.com/en/1.0.0/),
5 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
7 ## 0.8.1 (2026-07-08)
8 ### Added
9 - `SetOfRef` struct ([#2247])
10
11 ### Changed
12 - Deprecate `ErrorKind::SetDuplicate` ([#2276])
13 - Improve `SetOf*` sorting performance ([#2345])
14 - Cap maximum number of nested messages at `64` ([#2379])
15
16 ### Fixed
17 - `SET OF` is not supposed to disallow duplicates ([#2272])
18
19 [#2247]: https://github.com/RustCrypto/formats/pull/2247
20 [#2272]: https://github.com/RustCrypto/formats/pull/2272
21 [#2276]: https://github.com/RustCrypto/formats/pull/2276
22 [#2345]: https://github.com/RustCrypto/formats/pull/2345
23 [#2379]: https://github.com/RustCrypto/formats/pull/2379
24
25 ## 0.8.0 (2026-02-13)
26 ### Added
27 - Custom error types support to the `Decode` and `DecodeValue` traits ([#1055])
28 - `EncodingRules` enum ([#1321])
29 - `Decode::from_ber` ([#1389])
30 - Documentation for field-level `tag_mode` attribute ([#1401])
31 - `Hash` implementation for `AlgorithmIdentifier` ([#1414])
32 - `SequenceRef::as_bytes` and `AsRef<[u8]>` impl ([#1454])
33 - `Reader::peek_into` ([#1478])
34 - `GeneralString` variant to `Tag` ([#1512])
35 - Conversions from `OctetString(Ref)` to `Vec`/`Bytes` ([#1540])
36 - Custom error types in derive macros ([#1560])
37 - Support for tags beyond 30 ([#1651])
38 - Const `::new` to `Length`, `BytesRef`, and `AnyRef` ([#1713])
39 - Const `GeneralizedTime::from_date_time` ([#1718])
40 - `Decode::from_der_partial` ([#1725])
41 - Conversions between `BitStringRef`/`OctetStringRef` and `[u8; N]` ([#1731])
42 - Add class bits consts for Application and Private tag support ([#1721])
43 - conversions between `heapless:Vec<u8>` and `OctetStringRef` ([#1735])
44 - `IsConstructed` trait, impl'ed on any `FixedTag` ([#1744])
45 - Implement `Hash` for `SetOf` ([#1764])
46 - Implement `Uint`/`Int` conversions from native types ([#1762])
47 - Support for `APPLICATION`, `CONTEXT-SPECIFIC` and `PRIVATE` tags ([#1819], [#1825], [#1944])
48 - Support `Cow<[u8]>` in `derive(Sequence)` ([#1850])
49 - `diagnostic::on_unimplemented` attributes ([#1876])
50 - `Reader::read_value`, auto-nest `DecodeValue` ([#1877], [#1895], [#1897], [#1901])
51 - Indefinite length support for BER ([#1884], [#1885], [#1894], [#1900], [#1902], [#1910])
52 - Constructed OctetString support ([#1899], [#1922])
53 - string conversions, predicate methods for EncodingRules ([#1903], [#1953])
54 - `Any::header` ([#1935])
55 - `Tag::RelativeOid` ([#1942])
56 - `ber` feature ([#1948], [#1950])
57 - Hash derive for `StringOwned` and `Ia5String` ([#1973])
58 - Implement `DecodeValue/EncodeValue/Tagged` for `Cow` ([#2093])
59 - Add doc examples for `EncodeValue`, `Encode`, `DecodeValue`, `Decode`, `Error`, `ErrorKind`, `Tagged`, `FixedTag`,
60 `IsConstructed`, `Tag`, `Length`, `Header` ([#2075], [#2071], [#2070], [#2064], [#2058], [#2052], [#2053], [#2051])
61 - `SequenceRef::new` ([#2224])
62
63 ### Changed
64 - Return `Tag::Integer.length_error()` on empty ints ([#1400])
65 - Allow all blanket impls on `?Sized` types ([#1451])
66 - Refactor `Tag::peek` ([#1479])
67 - Refactor `Header::peek` ([#1480])
68 - Use `core::error::Error` ([#1553])
69 - Use 2024 edition, bump MSRV to 1.85 ([#1670])
70 - Bump `const-oid` to v0.10 ([#1676])
71 - Reject zero lengths reads ([#1716])
72 - Deprecate `TagNumber::new` ([#1727])
73 - Use strict context-specific skipping condition (equal tag numbers only) ([#1740])
74 - Const `Any::to_ref`, `BytesOwned::to_ref` ([#1797])
75 - Return `ErrorKind::Noncanonical` in `EXPLICIT` when primitive ([#1818])
76 - Use `read_nested` to check length of `IMPLICIT` types ([#1739])
77 - Simplify `From<&UintRef<'a>>` for `Uint` ([#1840])
78 - Make `ObjectIdentifier<MAX_SIZE>` impls generic ([#1851])
79 - Extract `reader::position::Position` ([#1880])
80 - Make `Reader` cloneable ([#1883])
81 - Simplify `Header::peek` and `Tag::peek` ([#1886])
82 - Improve constructed bit handling ([#1919])
83 - Use fat pointer in `OctetStringRef`, consolidate bytes/string modules, improve internal ref types
84 ([#1920], [#1921], [#1998], [#2040])
85 - Change constructor `Header::new`, add `Header::with_length`, tests for constructed octet string ([#1931], [#1930])
86 - Simplify `der_cmp` for `Length` ([#1997])
87 - Rename variable encoder -> writer and improve example ([#2078])
88 - Have `PemReader` decode to `Cow::Owned` ([#2094])
89 - Only sort `SET OF` types with `EncodingRules::Der` ([#2219])
90 - `SetOf` and `SequenceOf` now require `heapless` feature ([#2220], [#2229])
91
92 ### Fixed
93 - Append in `Encode::encode_to_vec` ([#1760])
94 - Derive optional OCTET/BIT STRING on `Option<&[u8]>` ([#1737])
95 - X.680 tag order: compare class and number first ([#1790])
96 - BMPString compatibility in derive macros ([#1793])
97 - `Tag::peek_optional` for 6-byte and 7+ byte tags ([#1804])
98 - `Header::peek` for 11-byte tag-lengths ([#1828])
99 - Panic in `value_cmp`: add `Iterator::size_hint` ([#1830])
100 - Error position tracking improvements ([#1889], [#2080], [#2079])
101 - Bound `Decode(Value)::Error` on `core::error::Error` ([#2137])
102 - Have `SetOf(Vec)::insert` check for duplicates ([#2217])
103
104 ### Removed
105 - `TagNumber::N0..N30` consts ([#1724])
106 - 256MiB limit on `Length` ([#1726])
107 - Generic `<T>` from `Reader::finish` ([#1833])
108 - Deprecated `SetOf(Vec)::add` methods ([#2232])
109 - `SequenceRef` lifetime ([#2224])
110
111 [#1055]: https://github.com/RustCrypto/formats/pull/1055
112 [#1321]: https://github.com/RustCrypto/formats/pull/1321
113 [#1389]: https://github.com/RustCrypto/formats/pull/1389
114 [#1400]: https://github.com/RustCrypto/formats/pull/1400
115 [#1401]: https://github.com/RustCrypto/formats/pull/1401
116 [#1414]: https://github.com/RustCrypto/formats/pull/1414
117 [#1451]: https://github.com/RustCrypto/formats/pull/1451
118 [#1454]: https://github.com/RustCrypto/formats/pull/1454
119 [#1478]: https://github.com/RustCrypto/formats/pull/1478
120 [#1479]: https://github.com/RustCrypto/formats/pull/1479
121 [#1480]: https://github.com/RustCrypto/formats/pull/1480
122 [#1512]: https://github.com/RustCrypto/formats/pull/1512
123 [#1540]: https://github.com/RustCrypto/formats/pull/1540
124 [#1553]: https://github.com/RustCrypto/formats/pull/1553
125 [#1560]: https://github.com/RustCrypto/formats/pull/1560
126 [#1651]: https://github.com/RustCrypto/formats/pull/1651
127 [#1670]: https://github.com/RustCrypto/formats/pull/1670
128 [#1676]: https://github.com/RustCrypto/formats/pull/1676
129 [#1713]: https://github.com/RustCrypto/formats/pull/1713
130 [#1716]: https://github.com/RustCrypto/formats/pull/1716
131 [#1718]: https://github.com/RustCrypto/formats/pull/1718
132 [#1721]: https://github.com/RustCrypto/formats/pull/1721
133 [#1724]: https://github.com/RustCrypto/formats/pull/1724
134 [#1725]: https://github.com/RustCrypto/formats/pull/1725
135 [#1726]: https://github.com/RustCrypto/formats/pull/1726
136 [#1727]: https://github.com/RustCrypto/formats/pull/1727
137 [#1731]: https://github.com/RustCrypto/formats/pull/1731
138 [#1735]: https://github.com/RustCrypto/formats/pull/1735
139 [#1737]: https://github.com/RustCrypto/formats/pull/1737
140 [#1739]: https://github.com/RustCrypto/formats/pull/1739
141 [#1760]: https://github.com/RustCrypto/formats/pull/1760
142 [#1762]: https://github.com/RustCrypto/formats/pull/1762
143 [#1764]: https://github.com/RustCrypto/formats/pull/1764
144 [#1740]: https://github.com/RustCrypto/formats/pull/1740
145 [#1744]: https://github.com/RustCrypto/formats/pull/1744
146 [#1790]: https://github.com/RustCrypto/formats/pull/1790
147 [#1793]: https://github.com/RustCrypto/formats/pull/1793
148 [#1797]: https://github.com/RustCrypto/formats/pull/1797
149 [#1804]: https://github.com/RustCrypto/formats/pull/1804
150 [#1818]: https://github.com/RustCrypto/formats/pull/1818
151 [#1819]: https://github.com/RustCrypto/formats/pull/1819
152 [#1825]: https://github.com/RustCrypto/formats/pull/1825
153 [#1828]: https://github.com/RustCrypto/formats/pull/1828
154 [#1830]: https://github.com/RustCrypto/formats/pull/1830
155 [#1833]: https://github.com/RustCrypto/formats/pull/1833
156 [#1840]: https://github.com/RustCrypto/formats/pull/1840
157 [#1850]: https://github.com/RustCrypto/formats/pull/1850
158 [#1851]: https://github.com/RustCrypto/formats/pull/1851
159 [#1876]: https://github.com/RustCrypto/formats/pull/1876
160 [#1877]: https://github.com/RustCrypto/formats/pull/1877
161 [#1880]: https://github.com/RustCrypto/formats/pull/1880
162 [#1883]: https://github.com/RustCrypto/formats/pull/1883
163 [#1884]: https://github.com/RustCrypto/formats/pull/1884
164 [#1885]: https://github.com/RustCrypto/formats/pull/1885
165 [#1886]: https://github.com/RustCrypto/formats/pull/1886
166 [#1889]: https://github.com/RustCrypto/formats/pull/1889
167 [#1894]: https://github.com/RustCrypto/formats/pull/1894
168 [#1895]: https://github.com/RustCrypto/formats/pull/1895
169 [#1897]: https://github.com/RustCrypto/formats/pull/1897
170 [#1899]: https://github.com/RustCrypto/formats/pull/1899
171 [#1900]: https://github.com/RustCrypto/formats/pull/1900
172 [#1901]: https://github.com/RustCrypto/formats/pull/1901
173 [#1902]: https://github.com/RustCrypto/formats/pull/1902
174 [#1903]: https://github.com/RustCrypto/formats/pull/1903
175 [#1910]: https://github.com/RustCrypto/formats/pull/1910
176 [#1919]: https://github.com/RustCrypto/formats/pull/1919
177 [#1920]: https://github.com/RustCrypto/formats/pull/1920
178 [#1921]: https://github.com/RustCrypto/formats/pull/1921
179 [#1922]: https://github.com/RustCrypto/formats/pull/1922
180 [#1930]: https://github.com/RustCrypto/formats/pull/1930
181 [#1931]: https://github.com/RustCrypto/formats/pull/1931
182 [#1935]: https://github.com/RustCrypto/formats/pull/1935
183 [#1942]: https://github.com/RustCrypto/formats/pull/1942
184 [#1944]: https://github.com/RustCrypto/formats/pull/1944
185 [#1948]: https://github.com/RustCrypto/formats/pull/1948
186 [#1950]: https://github.com/RustCrypto/formats/pull/1950
187 [#1953]: https://github.com/RustCrypto/formats/pull/1953
188 [#1973]: https://github.com/RustCrypto/formats/pull/1973
189 [#1997]: https://github.com/RustCrypto/formats/pull/1997
190 [#1998]: https://github.com/RustCrypto/formats/pull/1998
191 [#2137]: https://github.com/RustCrypto/formats/pull/2137
192 [#2040]: https://github.com/RustCrypto/formats/pull/2040
193 [#2051]: https://github.com/RustCrypto/formats/pull/2051
194 [#2052]: https://github.com/RustCrypto/formats/pull/2052
195 [#2053]: https://github.com/RustCrypto/formats/pull/2053
196 [#2058]: https://github.com/RustCrypto/formats/pull/2058
197 [#2064]: https://github.com/RustCrypto/formats/pull/2064
198 [#2070]: https://github.com/RustCrypto/formats/pull/2070
199 [#2071]: https://github.com/RustCrypto/formats/pull/2071
200 [#2075]: https://github.com/RustCrypto/formats/pull/2075
201 [#2078]: https://github.com/RustCrypto/formats/pull/2078
202 [#2079]: https://github.com/RustCrypto/formats/pull/2079
203 [#2080]: https://github.com/RustCrypto/formats/pull/2080
204 [#2093]: https://github.com/RustCrypto/formats/pull/2093
205 [#2094]: https://github.com/RustCrypto/formats/pull/2094
206 [#2217]: https://github.com/RustCrypto/formats/pull/2217
207 [#2219]: https://github.com/RustCrypto/formats/pull/2219
208 [#2220]: https://github.com/RustCrypto/formats/pull/2220
209 [#2224]: https://github.com/RustCrypto/formats/pull/2224
210 [#2229]: https://github.com/RustCrypto/formats/pull/2229
211 [#2232]: https://github.com/RustCrypto/formats/pull/2232
212
213 ## 0.7.10 (2024-04-18)
214 ### Fixed
215 - append in `Encode::encode_to_vec` (backport [#1760])
216
217 [#1760]: https://github.com/RustCrypto/formats/pull/1760
218
219 ## 0.7.9 (2024-04-01)
220 ### Changed
221 - make sure der is comptatible with potential language breaking changed (backport [#1374])
222
223 [#1374]: https://github.com/RustCrypto/formats/pull/1374
224
225 ## 0.7.8 (2023-08-07)
226 ### Added
227 - `bytes` feature ([#1156])
228 - impl `RefToOwned`/`OwnedToRef` for `&[u8]`/`Box<[u8]>` ([#1188])
229 - `BmpString` ([#1164])
230
231 ### Changed
232 - no-panic cleanup ([#1169])
233 - Bump `der_derive` dependency to v0.7.2 ([#1192])
234
235 [#1156]: https://github.com/RustCrypto/formats/pull/1156
236 [#1164]: https://github.com/RustCrypto/formats/pull/1164
237 [#1169]: https://github.com/RustCrypto/formats/pull/1169
238 [#1188]: https://github.com/RustCrypto/formats/pull/1188
239 [#1192]: https://github.com/RustCrypto/formats/pull/1192
240
241 ## 0.7.7 (2023-06-29)
242 ### Added
243 - `TryFrom<String>` impl for strings based on `StrOwned` ([#1064])
244
245 [#1064]: https://github.com/RustCrypto/formats/pull/1064
246
247 ## 0.7.6 (2023-05-16)
248 ### Added
249 - `SetOfVec::{extend, from_iter}` methods ([#1065])
250 - `SetOf(Vec)::{insert, insert_ordered}` methods ([#1067])
251
252 ### Changed
253 - Deprecate `SetOf(Vec)::add` ([#1067])
254
255 ### Fixed
256 - Off-by-one error in `BMPString` tag ([#1037])
257 - Handling of non-unique items in `SetOf`(Vec) ([#1066])
258
259 [#1037]: https://github.com/RustCrypto/formats/pull/1037
260 [#1065]: https://github.com/RustCrypto/formats/pull/1065
261 [#1066]: https://github.com/RustCrypto/formats/pull/1066
262 [#1067]: https://github.com/RustCrypto/formats/pull/1067
263
264 ## 0.7.5 (2023-04-24)
265 ### Added
266 - adds support for `DateTime::INFINITY` ([#1026])
267
268 [#1026]: https://github.com/RustCrypto/formats/pull/1026
269
270 ## 0.7.4 (2023-04-19)
271 ### Added
272 - `Decode` and `Encode` impls for `PhantomData` ([#1009])
273 - `ValueOrd` and `DerOrd` impls for `PhantomData` ([#1012])
274
275 ### Changed
276 - Bump `hex-literal` dependency to v0.4.1 ([#999])
277 - Bump `der_derive` dependency to v0.7.1 ([#1016])
278
279 [#1009]: https://github.com/RustCrypto/formats/pull/1009
280 [#1012]: https://github.com/RustCrypto/formats/pull/1012
281 [#1016]: https://github.com/RustCrypto/formats/pull/1016
282
283 ## 0.7.3 (2023-04-06)
284 ### Added
285 - `UtcTime::MAX_YEAR` associated constant ([#989])
286
287 [#989]: https://github.com/RustCrypto/formats/pull/989
288
289 ## 0.7.2 (2023-04-04)
290 ### Added
291 - Expose `NestedReader ([#925])
292 - `From<ObjectIdentifier>` impl for `Any` ([#965])
293 - `Any::null` helper ([#969])
294 - `Any::encode_from` ([#976])
295
296 [#925]: https://github.com/RustCrypto/formats/pull/925
297 [#965]: https://github.com/RustCrypto/formats/pull/965
298 [#969]: https://github.com/RustCrypto/formats/pull/969
299 [#976]: https://github.com/RustCrypto/formats/pull/976
300
301 ## 0.7.1 (2023-03-07)
302 ### Changed
303 - Make `zeroize`'s `alloc` feature conditional ([#920])
304
305 [#920]: https://github.com/RustCrypto/formats/pull/920
306
307 ## 0.7.0 (2023-02-26) [YANKED]
308 ### Added
309 - `OwnedtoRef`/`RefToOwned` traits; MSRV 1.65 ([#797])
310 - `OctetStringRef::decode_into` ([#817])
311 - `Int` and `IntRef` types ([#823])
312 - `IndefiniteLength` type ([#830])
313 - `Any::value` accessor ([#833])
314 - Buffered PEM reader ([#839])
315 - `OctetString::into_bytes` ([#845])
316 - Blanket impls on `Box<T>` for `DecodeValue`, `EncodeValue`, and `Sequence` ([#860])
317
318 ### Changed
319 - Rename `UIntRef` => `UintRef` ([#786])
320 - Replace use of `dyn Writer` with `impl Writer` ([#828])
321 - Rename `AnyRef::decode_into` -> `::decode_as` ([#829])
322 - Bump `pem-rfc7468` dependency to v0.7 ([#894])
323 - Rename `Encode::to_vec` => `::to_der` ([#898])
324
325 ### Removed
326 - `Sequence::fields` method ([#828])
327 - Inherent `AnyRef` decoding methods ([#829])
328
329 [#786]: https://github.com/RustCrypto/formats/pull/786
330 [#797]: https://github.com/RustCrypto/formats/pull/797
331 [#817]: https://github.com/RustCrypto/formats/pull/817
332 [#823]: https://github.com/RustCrypto/formats/pull/823
333 [#828]: https://github.com/RustCrypto/formats/pull/828
334 [#829]: https://github.com/RustCrypto/formats/pull/829
335 [#830]: https://github.com/RustCrypto/formats/pull/830
336 [#833]: https://github.com/RustCrypto/formats/pull/833
337 [#839]: https://github.com/RustCrypto/formats/pull/839
338 [#845]: https://github.com/RustCrypto/formats/pull/845
339 [#860]: https://github.com/RustCrypto/formats/pull/860
340 [#894]: https://github.com/RustCrypto/formats/pull/894
341 [#898]: https://github.com/RustCrypto/formats/pull/898
342
343 ## 0.6.1 (2022-12-05)
344 ### Added
345 - Rudimentary implementation of `TeletexString` and `VideotexString` ([#691])
346 - Impl `ValueOrd` for `FlagSet<T>` and `UIntRef` ([#723])
347
348 ### Changed
349 - Eliminate some boilerplate code by using `Deref` ([#697])
350
351 [#691]: https://github.com/RustCrypto/formats/pull/691
352 [#697]: https://github.com/RustCrypto/formats/pull/697
353 [#723]: https://github.com/RustCrypto/formats/pull/723
354
355 ## 0.6.0 (2022-05-08)
356 ### Added
357 - Impl `ValueOrd` for `SetOf` and `SetOfVec` ([#362])
358 - `SequenceRef` type ([#374])
359 - Support for `SetOf` sorting on heapless `no_std` targets ([#401])
360 - Support for mapping `BitString` to/from a `FlagSet` ([#412])
361 - `DecodeOwned` marker trait ([#529])
362 - Support for the ASN.1 `REAL` type ([#346])
363 - `DecodePem` and `EncodePem` traits ([#571])
364 - `Document` and `SecretDocument` types ([#571])
365 - `EncodeRef`/`EncodeValueRef` wrapper types ([#604])
366 - `Writer` trait ([#605])
367 - `Reader` trait ([#606])
368 - Streaming on-the-fly `PemReader` and `PemWriter` ([#618], [#636])
369 - Owned `BitString` ([#636])
370 - Owned `Any` and `OctetString` types ([#640])
371
372 ### Changed
373 - Pass `Header` to `DecodeValue` ([#392])
374 - Bump `const-oid` dependency to v0.9 ([#507])
375 - Renamed `Decodable`/`Encodable` => `Decode`/`Encode` ([#523])
376 - Enable arithmetic, casting, and panic `clippy` lints ([#556], [#579])
377 - Use `&mut dyn Writer` as output for `Encode::encode` and `EncodeValue::encode_value` ([#611])
378 - Bump `pem-rfc7468` dependency to v0.6 ([#620])
379 - Use `Reader<'a>` as input for `Decode::decode` and `DecodeValue::decode_value` ([#633])
380 - Renamed `Any` => `AnyRef` ([#637])
381 - Renamed `BitString` => `BitStringRef` ([#637])
382 - Renamed `Ia5String` => `Ia5StringRef` ([#637])
383 - Renamed `OctetString` => `OctetStringRef` ([#637])
384 - Renamed `PrintableString` => `PrintableStringRef` ([#637])
385 - Renamed `Utf8String` => `Utf8StringRef` ([#637])
386 - Renamed `UIntBytes` => `UIntRef` ([#637])
387 - Renamed `Decoder` => `SliceReader` ([#651])
388 - Renamed `Encoder` => `SliceWriter` ([#651])
389
390 ### Fixed
391 - Handling of oversized unsigned `INTEGER` inputs ([#447])
392
393 ### Removed
394 - `bigint` feature ([#344])
395 - `OrdIsValueOrd` trait ([#359])
396 - `Document` trait ([#571])
397 - `OptionalRef` ([#604])
398 - Decode-time SET OF ordering checks ([#625])
399
400 [#344]: https://github.com/RustCrypto/formats/pull/344
401 [#346]: https://github.com/RustCrypto/formats/pull/346
402 [#359]: https://github.com/RustCrypto/formats/pull/359
403 [#362]: https://github.com/RustCrypto/formats/pull/362
404 [#374]: https://github.com/RustCrypto/formats/pull/374
405 [#392]: https://github.com/RustCrypto/formats/pull/392
406 [#401]: https://github.com/RustCrypto/formats/pull/401
407 [#412]: https://github.com/RustCrypto/formats/pull/412
408 [#447]: https://github.com/RustCrypto/formats/pull/447
409 [#507]: https://github.com/RustCrypto/formats/pull/507
410 [#523]: https://github.com/RustCrypto/formats/pull/523
411 [#529]: https://github.com/RustCrypto/formats/pull/529
412 [#556]: https://github.com/RustCrypto/formats/pull/556
413 [#571]: https://github.com/RustCrypto/formats/pull/571
414 [#579]: https://github.com/RustCrypto/formats/pull/579
415 [#604]: https://github.com/RustCrypto/formats/pull/604
416 [#605]: https://github.com/RustCrypto/formats/pull/605
417 [#606]: https://github.com/RustCrypto/formats/pull/606
418 [#611]: https://github.com/RustCrypto/formats/pull/611
419 [#618]: https://github.com/RustCrypto/formats/pull/618
420 [#620]: https://github.com/RustCrypto/formats/pull/620
421 [#625]: https://github.com/RustCrypto/formats/pull/625
422 [#633]: https://github.com/RustCrypto/formats/pull/633
423 [#636]: https://github.com/RustCrypto/formats/pull/636
424 [#637]: https://github.com/RustCrypto/formats/pull/637
425 [#640]: https://github.com/RustCrypto/formats/pull/640
426 [#651]: https://github.com/RustCrypto/formats/pull/651
427
428 ## 0.5.1 (2021-11-17)
429 ### Added
430 - `Any::NULL` constant ([#226])
431
432 [#226]: https://github.com/RustCrypto/formats/pull/226
433
434 ## 0.5.0 (2021-11-15) [YANKED]
435 ### Added
436 - Support for `IMPLICIT` mode `CONTEXT-SPECIFIC` fields ([#61])
437 - `DecodeValue`/`EncodeValue` traits ([#63])
438 - Expose `DateTime` through public API ([#75])
439 - `SEQUENCE OF` support for `[T; N]` ([#90])
440 - `SequenceOf` type ([#95])
441 - `SEQUENCE OF` support for `Vec` ([#96])
442 - `Document` trait ([#117])
443 - Basic integration with `time` crate ([#129])
444 - `Tag::NumericString` ([#132])
445 - Support for unused bits to `BitString` ([#141])
446 - `Decoder::{peek_tag, peek_header}` ([#142])
447 - Type hint in `encoder `sequence` method ([#147])
448 - `Tag::Enumerated` ([#153])
449 - `ErrorKind::TagNumberInvalid` ([#156])
450 - `Tag::VisibleString` and `Tag::BmpString` ([#160])
451 - Inherent constants for all valid `TagNumber`s ([#165])
452 - `DerOrd` and `ValueOrd` traits ([#190])
453 - `ContextSpecificRef` type ([#199])
454
455 ### Changed
456 - Make `ContextSpecific` generic around an inner type ([#60])
457 - Removed `SetOf` trait; rename `SetOfArray` => `SetOf` ([#97])
458 - Rename `Message` trait to `Sequence` ([#99])
459 - Make `GeneralizedTime`/`UtcTime` into `DateTime` newtypes ([#102])
460 - Rust 2021 edition upgrade; MSRV 1.56 ([#136])
461 - Replace `ErrorKind::Truncated` with `ErrorKind::Incomplete` ([#143])
462 - Rename `ErrorKind::UnknownTagMode` => `ErrorKind::TagModeUnknown` ([#155])
463 - Rename `ErrorKind::UnexpectedTag` => `ErrorKind::TagUnexpected` ([#155])
464 - Rename `ErrorKind::UnknownTag` => `ErrorKind::TagUnknown` ([#155])
465 - Consolidate `ErrorKind::{Incomplete, Underlength}` ([#157])
466 - Rename `Tagged` => `FixedTag`; add new `Tagged` trait ([#189])
467 - Use `DerOrd` for `SetOf*` types ([#200])
468 - Switch `impl From<BitString> for &[u8]` to `TryFrom` ([#203])
469 - Bump `crypto-bigint` dependency to v0.3 ([#215])
470 - Bump `const-oid` dependency to v0.7 ([#216])
471 - Bump `pem-rfc7468` dependency to v0.3 ([#217])
472 - Bump `der_derive` dependency to v0.5 ([#221])
473
474 ### Removed
475 - `Sequence` struct ([#98])
476 - `Tagged` bound on `ContextSpecific::decode_implicit` ([#161])
477 - `ErrorKind::DuplicateField` ([#162])
478
479 [#60]: https://github.com/RustCrypto/formats/pull/60
480 [#61]: https://github.com/RustCrypto/formats/pull/61
481 [#63]: https://github.com/RustCrypto/formats/pull/63
482 [#75]: https://github.com/RustCrypto/formats/pull/75
483 [#90]: https://github.com/RustCrypto/formats/pull/90
484 [#95]: https://github.com/RustCrypto/formats/pull/95
485 [#96]: https://github.com/RustCrypto/formats/pull/96
486 [#97]: https://github.com/RustCrypto/formats/pull/97
487 [#98]: https://github.com/RustCrypto/formats/pull/98
488 [#99]: https://github.com/RustCrypto/formats/pull/99
489 [#102]: https://github.com/RustCrypto/formats/pull/102
490 [#117]: https://github.com/RustCrypto/formats/pull/117
491 [#129]: https://github.com/RustCrypto/formats/pull/129
492 [#132]: https://github.com/RustCrypto/formats/pull/132
493 [#136]: https://github.com/RustCrypto/formats/pull/136
494 [#141]: https://github.com/RustCrypto/formats/pull/141
495 [#142]: https://github.com/RustCrypto/formats/pull/142
496 [#143]: https://github.com/RustCrypto/formats/pull/143
497 [#147]: https://github.com/RustCrypto/formats/pull/147
498 [#153]: https://github.com/RustCrypto/formats/pull/153
499 [#155]: https://github.com/RustCrypto/formats/pull/155
500 [#156]: https://github.com/RustCrypto/formats/pull/156
501 [#157]: https://github.com/RustCrypto/formats/pull/157
502 [#160]: https://github.com/RustCrypto/formats/pull/160
503 [#161]: https://github.com/RustCrypto/formats/pull/161
504 [#162]: https://github.com/RustCrypto/formats/pull/162
505 [#165]: https://github.com/RustCrypto/formats/pull/165
506 [#189]: https://github.com/RustCrypto/formats/pull/189
507 [#190]: https://github.com/RustCrypto/formats/pull/190
508 [#199]: https://github.com/RustCrypto/formats/pull/199
509 [#200]: https://github.com/RustCrypto/formats/pull/200
510 [#203]: https://github.com/RustCrypto/formats/pull/203
511 [#215]: https://github.com/RustCrypto/formats/pull/215
512 [#216]: https://github.com/RustCrypto/formats/pull/216
513 [#217]: https://github.com/RustCrypto/formats/pull/217
514 [#221]: https://github.com/RustCrypto/formats/pull/221
515
516 ## 0.4.5 (2021-12-01)
517 ### Fixed
518 - Backport [#147] type hint fix for WASM platforms to 0.4.x
519
520 ## 0.4.4 (2021-10-06)
521 ### Removed
522 - Accidentally checked-in `target/` directory ([#66])
523
524 [#66]: https://github.com/RustCrypto/formats/pull/66
525
526 ## 0.4.3 (2021-09-15)
527 ### Added
528 - `Tag::unexpected_error` ([#33])
529
530 [#33]: https://github.com/RustCrypto/formats/pull/33
531
532 ## 0.4.2 (2021-09-14)
533 ### Changed
534 - Moved to `formats` repo ([#2])
535
536 ### Fixed
537 - ASN.1 `SET` type now flagged with the constructed bit
538
539 [#2]: https://github.com/RustCrypto/formats/pull/2
540
541 ## 0.4.1 (2021-08-08)
542 ### Fixed
543 - Encoding `UTCTime` for dates with `20xx` years
544
545 ## 0.4.0 (2021-06-07)
546 ### Added
547 - `TagNumber` type
548 - Const generic integer de/encoders with support for all of Rust's integer
549 primitives
550 - `crypto-bigint` support
551 - `Tag` number helpers
552 - `Tag::octet`
553 - `ErrorKind::Value` helpers
554 - `SequenceIter`
555
556 ### Changed
557 - Bump `const-oid` crate dependency to v0.6
558 - Make `Tag` structured
559 - Namespace ASN.1 types in `asn1` module
560 - Refactor context-specific field decoding
561 - MSRV 1.51
562 - Rename `big-uint` crate feature to `bigint`
563 - Rename `BigUInt` to `UIntBytes`
564 - Have `Decoder::error()` return an `Error`
565
566 ### Removed
567 - Deprecated methods replaced by associated constants
568
569 ## 0.3.5 (2021-05-24)
570 ### Added
571 - Helper methods for context-specific fields
572 - `ContextSpecific` field wrapper
573 - Decoder position tracking for errors during `Any<'a>` decoding
574
575 ### Fixed
576 - `From` conversion for `BitString` into `Any`
577
578 ## 0.3.4 (2021-05-16)
579 ### Changed
580 - Support `Length` of up to 1 MiB
581
582 ## 0.3.3 (2021-04-15)
583 ### Added
584 - `Length` constants
585
586 ### Changed
587 - Deprecate `const fn` methods replaced by `Length` constants
588
589 ## 0.3.2 (2021-04-15)
590 ### Fixed
591 - Non-critical bug allowing `Length` to exceed the max invariant
592
593 ## 0.3.1 (2021-04-01) [YANKED]
594 ### Added
595 - `PartialOrd` + `Ord` impls to all ASN.1 types
596
597 ## 0.3.0 (2021-03-22) [YANKED]
598 ### Added
599 - Impl `Decode`/`Encoded`/`Tagged` for `String`
600 - `Length::one` and `Length::for_tlv`
601 - `SET OF` support with `SetOf` trait and `SetOfRef`
602
603 ### Changed
604 - Rename `Decodable::from_bytes` => `Decodable::from_der`
605 - Separate `sequence` and `message`
606 - Rename `ErrorKind::Oid` => `ErrorKind::MalformedOid`
607 - Auto-derive `From` impls for variants when deriving `Choice`
608 - Make `Length` use `u32` internally
609 - Make `Sequence` constructor private
610 - Bump `const_oid` to v0.5
611 - Bump `der_derive` to v0.3
612
613 ### Removed
614 - Deprecated methods
615 - `BigUIntSize`
616
617 ## 0.2.10 (2021-02-28)
618 ### Added
619 - Impl `From<ObjectIdentifier>` for `Any`
620
621 ### Changed
622 - Bump minimum `const-oid` dependency to v0.4.4
623
624 ## 0.2.9 (2021-02-24)
625 ### Added
626 - Support for `IA5String`
627
628 ## 0.2.8 (2021-02-22)
629 ### Added
630 - `Choice` trait
631
632 ## 0.2.7 (2021-02-20)
633 ### Added
634 - Export `Header` publicly
635 - Make `Encoder::reserve` public
636
637 ## 0.2.6 (2021-02-19)
638 ### Added
639 - Make the unit type an encoding of `NULL`
640
641 ## 0.2.5 (2021-02-18)
642 ### Added
643 - `ErrorKind::UnknownOid` variant
644
645 ## 0.2.4 (2021-02-16)
646 ### Added
647 - `Any::is_null` method
648
649 ### Changed
650 - Deprecate `Any::null` method
651
652 ## 0.2.3 (2021-02-15)
653 ### Added
654 - Additional `rustdoc` documentation
655
656 ## 0.2.2 (2021-02-12)
657 ### Added
658 - Support for `UTCTime` and `GeneralizedTime`
659
660 ## 0.2.1 (2021-02-02)
661 ### Added
662 - Support for `PrintableString` and `Utf8String`
663
664 ## 0.2.0 (2021-01-22)
665 ### Added
666 - `BigUInt` type
667 - `i16` support
668 - `u8` and `u16` support
669 - Integer decoder helper methods
670
671 ### Fixed
672 - Handle leading byte of `BIT STRING`s
673
674 ## 0.1.0 (2020-12-21)
675 - Initial release