kaitai_struct_compiler icon indicating copy to clipboard operation
kaitai_struct_compiler copied to clipboard

Rust support

Open Agile86 opened this issue 2 years ago • 3 comments

Hello everybody,

my name is Oleh Dolhov, my collegue name is Vitaly Reshetyuk,

we are from Stroz Friedberg (AON) providing this PR to bring Rust-language support to Kaitai.

Right now we can pass almost all tests, except (4) tests, that's using features like:

  1. parent rewrite

Rust doesn't support inheritance, so there is no common type.

  1. KStructUnit, tests like nav_parent_switch_cast.ksy, params_pass_array_struct.ksy, params_pass_struct.ksy.

  2. AnyType, test like process_coerce_switch.ksy.

Please, note, you need to clone tests and runtime/rust exactly rust_basic_support_v2 branch.

Would be great to get feedback.

Best regards, Oleh & Vitaly.

Agile86 avatar Mar 15 '23 08:03 Agile86

Just wondering is this is still an active effort? I'd love to have Rust support for for Kaitai, as I'm trying to migrate some of my projects to Rust using existing kaitai structs

cmhulbert avatar Nov 28 '23 16:11 cmhulbert

Thanks for your interest. Yes, we are waiting for approval from maintainers.

Agile86 avatar Nov 28 '23 16:11 Agile86

Updated PR with the latest changes from the master branch + small improvements.

Agile86 avatar Feb 19 '24 04:02 Agile86