kaitai_struct_compiler
kaitai_struct_compiler copied to clipboard
Rust support
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:
- parent rewrite
Rust doesn't support inheritance, so there is no common type.
-
KStructUnit, tests like
nav_parent_switch_cast.ksy,params_pass_array_struct.ksy,params_pass_struct.ksy. -
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.
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
Thanks for your interest. Yes, we are waiting for approval from maintainers.
Updated PR with the latest changes from the master branch + small improvements.