2 ms·
Apache Fory Rust – Polyglot serialization with trait objects and circular refs
- chaokunyang 1y agoApache Fory is a serialization framework that works across languages without schema files. We just released the Rust implementation (v0.13) with some features we haven't seen elsewhere: 1. Serialize Box/Rc/Arc<dyn Trait> and preserve polymorphism on deserialization 2. Automatic circular reference handling (parent-child trees, graphs) 3. Reference identity preservation (Rc/Arc pointer equality maintained) 4. Cross-language compatibility (Rust ↔ Python/Java) with no IDL 5. Schema evolution without breaking changes 6. 10-20x faster serialization than JSON/Protobuf