The GitHub Actions job "Fory CI" on fory.git/main has succeeded.
Run started by GitHub user chaokunyang (triggered by chaokunyang).

Head commit for run:
477b64669caf2668e90b6e5df8efeeb3fa94d688 / urlyy <[email protected]>
feat(Rust): support basic type se/de aligned with java (#2585)

## What does this PR do?
1. Updated the legacy `read`/`write` methods to align with Java.
2. Started adding some `register_by_name` functionality; not finished
yet, will continue in the next PR.
3. Added a new test file to facilitate testing across different
languages conveniently.
4. Basic types, primitive arrays, string, list, set, and map are now
aligned with Java. Handling of compress algorithm for String and header
for map still needs improvement.

## Related issues
#2539 

## TODOs:
1. Enum derive.
2. Complete `register_by_name`.
3. Align with Java metashare, test on struct..
4. Implement serialization for `Box<dyn Any>` (may be challenging).

## Does this PR introduce any user-facing change?

- [x] Does this PR introduce any public API change?
```rust
# now can 
let reader = Reader::new(bytes.as_slice());
let fory = Fory::default().mode(Compatible).xlang(true);
let mut context = ReadContext::new(&fory, reader);
let a = fory.deserialize_with_context(&mut context);
let b = fory.deserialize_with_context(&mut context);
let c = fory.deserialize_with_context(&mut context);
```
And we should add `scoped_meta_context` in future.
- [x] Does this PR introduce any binary protocol compatibility change?

---------

Co-authored-by: Shawn Yang <[email protected]>
Co-authored-by: Shawn Yang <[email protected]>

Report URL: https://github.com/apache/fory/actions/runs/17662480227

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to