Skip to content

Commit 8425274

Browse files
authored
der_derive v0.8.0 (#2226)
## Added - `Sequence`, `Enumerated` and `Choice` macros now support `#[asn1(error = Ty)]` attribute that provides a custom error type for `Decode`/`DecodeValue` implementations (#1560) - `BitString` macro (#1720, #1733) - `DecodeValue`, `EncodeValue` macros (#1722) - Derive support for `APPLICATION` and `PRIVATE` tags (#1825) - Impl `DecodeValue` for `Choice` (#1986) ## Changed - Use `TryFrom` conversions for `asn1(type = ...)` (#1562) - Rewrite `EncodeValue::value_len` as simple addition (#1810) - Change OctetStringRef `&` handling due to `der` type changes (#1998, #2040, #2043)
1 parent 70f94d1 commit 8425274

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
"const-oid/v**",
1111
"crmf/v**",
1212
"der/v**",
13+
"der_derive/v**"
1314
"gss-api/v**",
1415
"mcf/v**",
1516
"pem-rfc7468/v**",

der/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ rust-version = "1.85"
2020
arbitrary = { version = "1.4", features = ["derive"], optional = true }
2121
bytes = { version = "1", optional = true, default-features = false }
2222
const-oid = { version = "0.10", optional = true }
23-
der_derive = { version = "0.8.0-rc.6", optional = true }
23+
der_derive = { version = "0.8", optional = true }
2424
flagset = { version = "0.4.7", optional = true }
2525
pem-rfc7468 = { version = "1", optional = true, features = ["alloc"] }
2626
time = { version = "0.3.4", optional = true, default-features = false }

der_derive/CHANGELOG.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77

8-
## 0.8.0 (UNRELEASED)
9-
8+
## 0.8.0 (2026-02-11)
109
### Added
11-
- `Sequence`, `Enumerated` and `Choice` macros now support `#[asn1(error = Ty)]` attribute that provides a custom error type for `Decode`/`DecodeValue` implementations ([#1560])
12-
- `BitString` macro ([#1720]) ([#1733])
10+
- `Sequence`, `Enumerated` and `Choice` macros now support `#[asn1(error = Ty)]` attribute that provides a custom error
11+
type for `Decode`/`DecodeValue` implementations ([#1560])
12+
- `BitString` macro ([#1720], [#1733])
1313
- `DecodeValue`, `EncodeValue` macros ([#1722])
14-
- impl DecodeValue for Choice ([#1986])
15-
- derive support for `APPLICATION` and `PRIVATE` tags ([#1825])
14+
- Derive support for `APPLICATION` and `PRIVATE` tags ([#1825])
15+
- Impl `DecodeValue` for `Choice` ([#1986])
1616

1717
### Changed
18-
- move `der/derive` => `der_derive` ([#1457])
19-
- use `TryFrom` conversions for `asn1(type = ...)` ([#1562])
20-
- rewrite `EncodeValue::value_len` as simple addition ([#1810])
21-
- change OctetStringRef `&` handling due to der type changes ([#2043]) ([#2040]) ([#1998])
18+
- Use `TryFrom` conversions for `asn1(type = ...)` ([#1562])
19+
- Rewrite `EncodeValue::value_len` as simple addition ([#1810])
20+
- Change OctetStringRef `&` handling due to `der` type changes ([#1998], [#2040], [#2043])
2221

2322
[#1457]: https://github.com/RustCrypto/formats/pull/1457
2423
[#1560]: https://github.com/RustCrypto/formats/pull/1560

der_derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "der_derive"
3-
version = "0.8.0-rc.6 "
3+
version = "0.8.0"
44
description = "Custom derive support for the `der` crate's `Choice` and `Sequence` traits"
55
authors = ["RustCrypto Developers"]
66
license = "Apache-2.0 OR MIT"

0 commit comments

Comments
 (0)