# Translate a very small lib from rust to haxe

**URL:** <https://community.haxe.org/t/translate-a-very-small-lib-from-rust-to-haxe/3976>\
**Category:** Haxe\
**Created:** [June 13, 2023, 8:16pm UTC](https://community.haxe.org/t/translate-a-very-small-lib-from-rust-to-haxe/3976 "2023-06-13T20:16:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mitchbux](https://community.haxe.org/user_avatar/community.haxe.org/mitchbux/32/2198_2.png) [@Mitchbux](https://community.haxe.org/u/Mitchbux)\
**Post date:** [June 13, 2023, 8:16pm UTC](https://community.haxe.org/t/translate-a-very-small-lib-from-rust-to-haxe/3976/1 "2023-06-13T20:16:33Z")

</div>

Hello,

Can anyone help me on rewriting this compression api from rust to haxe ?

> <https://github.com/comaeio/rust-lzxpress/blob/main/src/data.rs>

Only those two fonctions are to be coded in haxe : compress and decompress.

I’d love to donate for this kind of work.

Thanks

Mitchbux

---

<div class="post-metadata">

**Author:** ![Mitchbux](https://community.haxe.org/user_avatar/community.haxe.org/mitchbux/32/2198_2.png) [@Mitchbux](https://community.haxe.org/u/Mitchbux)\
**Post date:** [June 13, 2023, 8:44pm UTC](https://community.haxe.org/t/translate-a-very-small-lib-from-rust-to-haxe/3976/2 "2023-06-13T20:44:13Z")

</div>

There’s one thing about the code : the buffer should use haxe.io.Bytes.

---

<div class="post-metadata">

**Author:** ![Zhan](https://community.haxe.org/user_avatar/community.haxe.org/zhan/32/468_2.png) [@Zhan](https://community.haxe.org/u/Zhan)\
**Post date:** [June 26, 2023, 6:40am UTC](https://community.haxe.org/t/translate-a-very-small-lib-from-rust-to-haxe/3976/3 "2023-06-26T06:40:05Z")

</div>

why not ask chat gpt use gpt4.0? it could be help ! 😅
