canadensis icon indicating copy to clipboard operation
canadensis copied to clipboard

Data type generation using Nunavut

Open samcrow opened this issue 4 years ago • 2 comments

All the data type definitions and serialization code are hand-written. The existing Nunavut tool can automatically generate code for some languages. With some changes, it could also generate Rust code for use with canadensis_encoding.

Before embarking on that, we should decide if the ReadCursor/WriteCursor definitions need any changes.

samcrow avatar May 10 '21 02:05 samcrow

Now that we have canadensis_codegen_rust to automatically generate code, this is not so critical.

samcrow avatar Oct 24 '21 19:10 samcrow

YSK that there is currently work underway on Rust code generation in Nunavut: https://forum.uavcan.org/t/uavcan-rs-v1-progress-tracking/1430?u=pavel.kirienko

You would be most welcome to join the discussion. Nunavut is designed to generate code that is completely agnostic of the implementation library that it is going to be used with; that is, the expectation is that one could use such Nunavut-generated Rust code with either Canadensis or uavcan.rs with no changes.

pavel-kirienko avatar Oct 24 '21 19:10 pavel-kirienko