11 KiB
11 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.6.1 (2022-12-05)
Added
- Rudimentary implementation of
TeletexStringandVideotexString(#691) - Impl
ValueOrdforFlagSet<T>andUIntRef(#723)
Changed
- Eliminate some boilerplate code by using
Deref(#697)
0.6.0 (2022-05-08)
Added
- Impl
ValueOrdforSetOfandSetOfVec(#362) SequenceReftype (#374)- Support for
SetOfsorting on heaplessno_stdtargets (#401) - Support for mapping
BitStringto/from aFlagSet(#412) DecodeOwnedmarker trait (#529)- Support for the ASN.1
REALtype (#346) DecodePemandEncodePemtraits (#571)DocumentandSecretDocumenttypes (#571)EncodeRef/EncodeValueRefwrapper types (#604)Writertrait (#605)Readertrait (#606)- Streaming on-the-fly
PemReaderandPemWriter(#618, #636) - Owned
BitString(#636) - Owned
AnyandOctetStringtypes (#640)
Changed
- Pass
HeadertoDecodeValue(#392) - Bump
const-oiddependency to v0.9 (#507) - Renamed
Decodable/Encodable=>Decode/Encode(#523) - Enable arithmetic, casting, and panic
clippylints (#556, #579) - Use
&mut dyn Writeras output forEncode::encodeandEncodeValue::encode_value(#611) - Bump
pem-rfc7468dependency to v0.6 (#620) - Use
Reader<'a>as input forDecode::decodeandDecodeValue::decode_value(#633) - Renamed
Any=>AnyRef(#637) - Renamed
BitString=>BitStringRef(#637) - Renamed
Ia5String=>Ia5StringRef(#637) - Renamed
OctetString=>OctetStringRef(#637) - Renamed
PrintableString=>PrintableStringRef(#637) - Renamed
Utf8String=>Utf8StringRef(#637) - Renamed
UIntBytes=>UIntRef(#637) - Renamed
Decoder=>SliceReader(#651) - Renamed
Encoder=>SliceWriter(#651)
Fixed
- Handling of oversized unsigned
INTEGERinputs (#447)
Removed
bigintfeature (#344)OrdIsValueOrdtrait (#359)Documenttrait (#571)OptionalRef(#604)- Decode-time SET OF ordering checks (#625)
0.5.1 (2021-11-17)
Added
Any::NULLconstant (#226)
0.5.0 (2021-11-15) [YANKED]
Added
- Support for
IMPLICITmodeCONTEXT-SPECIFICfields (#61) DecodeValue/EncodeValuetraits (#63)- Expose
DateTimethrough public API (#75) SEQUENCE OFsupport for[T; N](#90)SequenceOftype (#95)SEQUENCE OFsupport forVec(#96)Documenttrait (#117)- Basic integration with
timecrate (#129) Tag::NumericString(#132)- Support for unused bits to
BitString(#141) Decoder::{peek_tag, peek_header}(#142)- Type hint in
encodersequence` method (#147) Tag::Enumerated(#153)ErrorKind::TagNumberInvalid(#156)Tag::VisibleStringandTag::BmpString(#160)- Inherent constants for all valid
TagNumbers (#165) DerOrdandValueOrdtraits (#190)ContextSpecificReftype (#199)
Changed
- Make
ContextSpecificgeneric around an inner type (#60) - Removed
SetOftrait; renameSetOfArray=>SetOf(#97) - Rename
Messagetrait toSequence(#99) - Make
GeneralizedTime/UtcTimeintoDateTimenewtypes (#102) - Rust 2021 edition upgrade; MSRV 1.56 (#136)
- Replace
ErrorKind::TruncatedwithErrorKind::Incomplete(#143) - Rename
ErrorKind::UnknownTagMode=>ErrorKind::TagModeUnknown(#155) - Rename
ErrorKind::UnexpectedTag=>ErrorKind::TagUnexpected(#155) - Rename
ErrorKind::UnknownTag=>ErrorKind::TagUnknown(#155) - Consolidate
ErrorKind::{Incomplete, Underlength}(#157) - Rename
Tagged=>FixedTag; add newTaggedtrait (#189) - Use
DerOrdforSetOf*types (#200) - Switch
impl From<BitString> for &[u8]toTryFrom(#203) - Bump
crypto-bigintdependency to v0.3 (#215) - Bump
const-oiddependency to v0.7 (#216) - Bump
pem-rfc7468dependency to v0.3 (#217) - Bump
der_derivedependency to v0.5 (#221)
Removed
Sequencestruct (#98)Taggedbound onContextSpecific::decode_implicit(#161)ErrorKind::DuplicateField(#162)
0.4.5 (2021-12-01)
Fixed
- Backport #147 type hint fix for WASM platforms to 0.4.x
0.4.4 (2021-10-06)
Removed
- Accidentally checked-in
target/directory (#66)
0.4.3 (2021-09-15)
Added
Tag::unexpected_error(#33)
0.4.2 (2021-09-14)
Changed
- Moved to
formatsrepo (#2)
Fixed
- ASN.1
SETtype now flagged with the constructed bit
0.4.1 (2021-08-08)
Fixed
- Encoding
UTCTimefor dates with20xxyears
0.4.0 (2021-06-07)
Added
TagNumbertype- Const generic integer de/encoders with support for all of Rust's integer primitives
crypto-bigintsupportTagnumber helpersTag::octetErrorKind::ValuehelpersSequenceIter
Changed
- Bump
const-oidcrate dependency to v0.6 - Make
Tagstructured - Namespace ASN.1 types in
asn1module - Refactor context-specific field decoding
- MSRV 1.51
- Rename
big-uintcrate feature tobigint - Rename
BigUInttoUIntBytes - Have
Decoder::error()return anError
Removed
- Deprecated methods replaced by associated constants
0.3.5 (2021-05-24)
Added
- Helper methods for context-specific fields
ContextSpecificfield wrapper- Decoder position tracking for errors during
Any<'a>decoding
Fixed
Fromconversion forBitStringintoAny
0.3.4 (2021-05-16)
Changed
- Support
Lengthof up to 1 MiB
0.3.3 (2021-04-15)
Added
Lengthconstants
Changed
- Deprecate
const fnmethods replaced byLengthconstants
0.3.2 (2021-04-15)
Fixed
- Non-critical bug allowing
Lengthto exceed the max invariant
0.3.1 (2021-04-01) [YANKED]
Added
PartialOrd+Ordimpls to all ASN.1 types
0.3.0 (2021-03-22) [YANKED]
Added
- Impl
Decode/Encoded/TaggedforString Length::oneandLength::for_tlvSET OFsupport withSetOftrait andSetOfRef
Changed
- Rename
Decodable::from_bytes=>Decodable::from_der - Separate
sequenceandmessage - Rename
ErrorKind::Oid=>ErrorKind::MalformedOid - Auto-derive
Fromimpls for variants when derivingChoice - Make
Lengthuseu32internally - Make
Sequenceconstructor private - Bump
const_oidto v0.5 - Bump
der_deriveto v0.3
Removed
- Deprecated methods
BigUIntSize
0.2.10 (2021-02-28)
Added
- Impl
From<ObjectIdentifier>forAny
Changed
- Bump minimum
const-oiddependency to v0.4.4
0.2.9 (2021-02-24)
Added
- Support for
IA5String
0.2.8 (2021-02-22)
Added
Choicetrait
0.2.7 (2021-02-20)
Added
- Export
Headerpublicly - Make
Encoder::reservepublic
0.2.6 (2021-02-19)
Added
- Make the unit type an encoding of
NULL
0.2.5 (2021-02-18)
Added
ErrorKind::UnknownOidvariant
0.2.4 (2021-02-16)
Added
Any::is_nullmethod
Changed
- Deprecate
Any::nullmethod
0.2.3 (2021-02-15)
Added
- Additional
rustdocdocumentation
0.2.2 (2021-02-12)
Added
- Support for
UTCTimeandGeneralizedTime
0.2.1 (2021-02-02)
Added
- Support for
PrintableStringandUtf8String
0.2.0 (2021-01-22)
Added
BigUInttypei16supportu8andu16support- Integer decoder helper methods
Fixed
- Handle leading byte of
BIT STRINGs
0.1.0 (2020-12-21)
- Initial release