feat(rust): Support xlang ref type alignment
Why?
What does this PR do?
Related issues
Related to issue-2722
Does this PR introduce any user-facing change?
- [ ] Does this PR introduce any public API change?
- [ ] Does this PR introduce any binary protocol compatibility change?
Benchmark
@kitalkuyo-gita The serialization of circular reference in rust is already supported in current fory rust implementation. The xlang support is more about alignment of ref types and flags. Due to the type system gaps between java and rust, a type may be taken as reference in java, but not a reference rust. Then the deserialization in rust/java may fail. You may need to start with adding reference tests in RustXlangTest.java and test_cross_language.rs.
@kitalkuyo-gita The serialization of circular reference in rust is already supported in current fory rust implementation. The xlang support is more about alignment of ref types and flags. Due to the type system gaps between java and rust, a type may be taken as reference in java, but not a reference rust. Then the deserialization in rust/java may fail. You may need to start with adding reference tests in
RustXlangTest.javaandtest_cross_language.rs.
OK, thanks for your suggestion