project-chip / rs-matter

Rust implementation of the Matter protocol. Status: Experimental
Apache License 2.0
310 stars 43 forks source link

Make idl codegen add to/from tlv for enums and structs. #145

Closed andy31415 closed 5 months ago

andy31415 commented 5 months ago

Changes

NOTE: struct derive of FromTLV is still broken because idl codegen uses a full path for rs_matter::tlv::Nullable and the FromTLV derive macro only expands the first path segment rs_matter and loses the Nullable part when calling tlv_not_found during parsing. I fixed that in a followup.