Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Rust): add meta string encoding algorithm in Rust (#1712)
## What does this PR do? Implementing meta string encoding algorithm in Rust and has passed all 13 tests. The code is in `rust/fury/src/meta/*` and `rust/tests/tests/test_meta.rs` ![Snipaste_2024-06-29_17-07-41](https://github.com/pandalee99/fury/assets/61675635/e00dce79-5763-4bdd-9a23-5f190199ed5c) I am not familiar with Rust, I implemented this feature by referring to the Java implementation and utilizing TONGYI Lingma. Therefore, there might be some problems. Please don't review it immediately. As this version is essentially the same as the Java version, I have a question for `But note that the meta string encoding algorithm is used for encode field name only, so the special charater can't be . or $, thus the implementation will be simpler`. Does this imply I should remove the checks in the Rust version for whether a character is equal to `.` or `$`? In that case, I also need to modify the test cases. ## Related issues [#1544](#1544) ## 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? ## 本改动借助了通义灵码进行辅助编程 ![image](https://github.com/pandalee99/fury/assets/61675635/7fb84046-80b5-4c44-b1d1-4bc7665224b1)
- Loading branch information