jxl-rs (rust) is just a decoder while libjxl (C++) can also encode.
There is a rust encoder in active developing by someone outside the core JPEG XL devs.