Commit 5dc6a32 1 parent 4b3953a commit 5dc6a32 Copy full SHA for 5dc6a32
File tree 3 files changed +19
-4
lines changed
3 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
7
7
## [ Unreleased]
8
8
9
- [ Unreleased ] : https://github.com/trussed-dev/ctap-types/compare/0.3.0...HEAD
9
+ [ Unreleased ] : https://github.com/trussed-dev/ctap-types/compare/0.3.1...HEAD
10
+
11
+ ## [ 0.3.1] 2024-10-18
12
+
13
+ [ 0.3.1 ] : https://github.com/trussed-dev/ctap-types/compare/0.3.0...0.3.1
14
+
15
+ ### Added
16
+
17
+ - Implement ` TryFrom<iso7816::command::CommandView<'a>> ` for ` Request<'a> `
10
18
11
19
## [ 0.3.0] 2024-08-01
12
20
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " ctap-types"
3
- version = " 0.3.0 "
3
+ version = " 0.3.1 "
4
4
authors = [" Nicolas Stalder <n@stalder.io>" , " The Trussed developers" ]
5
5
edition = " 2021"
6
6
license = " Apache-2.0 OR MIT"
@@ -15,7 +15,7 @@ cosey = "0.3.1"
15
15
delog = " 0.1"
16
16
heapless = { version = " 0.7" , default-features = false , features = [" serde" ] }
17
17
heapless-bytes = " 0.3"
18
- iso7816 = " 0.1.2 "
18
+ iso7816 = " 0.1.3 "
19
19
serde = { version = " 1" , default-features = false , features = [" derive" ] }
20
20
serde-indexed = " 0.1.1"
21
21
serde_bytes = { version = " 0.11.14" , default-features = false }
Original file line number Diff line number Diff line change @@ -156,8 +156,15 @@ impl Response {
156
156
157
157
impl < ' a , const S : usize > TryFrom < & ' a iso7816:: Command < S > > for Request < ' a > {
158
158
type Error = Error ;
159
- #[ inline( never) ]
160
159
fn try_from ( apdu : & ' a iso7816:: Command < S > ) -> Result < Request > {
160
+ apdu. as_view ( ) . try_into ( )
161
+ }
162
+ }
163
+
164
+ impl < ' a > TryFrom < iso7816:: command:: CommandView < ' a > > for Request < ' a > {
165
+ type Error = Error ;
166
+ #[ inline( never) ]
167
+ fn try_from ( apdu : iso7816:: command:: CommandView < ' a > ) -> Result < Request > {
161
168
let cla = apdu. class ( ) . into_inner ( ) ;
162
169
let ins = match apdu. instruction ( ) {
163
170
iso7816:: Instruction :: Unknown ( ins) => ins,
You can’t perform that action at this time.
0 commit comments