We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ce54f6 commit c99cccfCopy full SHA for c99cccf
src/macros.rs
@@ -14,6 +14,19 @@ macro_rules! asn1 {
14
asn1!(@field_name [$($parsed)* @type BOOLEAN @rust_type bool] [$($rest)*]);
15
);
16
17
+ // Special case empty SEQUENCE until https://github.com/rust-lang/rust/issues/29720 is
18
+ // resolved
19
+ (@complete $name:ident) => {
20
+ #[derive(PartialEq, Eq, Debug)]
21
+ struct $name;
22
+
23
+ impl $name {
24
+ fn asn1_description() -> Vec<(&'static str, &'static str, &'static str)> {
25
+ return vec![];
26
+ }
27
28
+ };
29
30
(@complete $name:ident $(, @name $field_name:ident @type $field_type:ident @rust_type $field_rust_type:ty)*) => {
31
struct $name {
32
$(
0 commit comments