fury icon indicating copy to clipboard operation
fury copied to clipboard

feat(rust): Support xlang ref type alignment

Open kitalkuyo-gita opened this issue 2 months ago • 2 comments

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 avatar Oct 23 '25 07:10 kitalkuyo-gita

@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.

chaokunyang avatar Oct 23 '25 08:10 chaokunyang

@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.

OK, thanks for your suggestion

kitalkuyo-gita avatar Oct 23 '25 08:10 kitalkuyo-gita