This is very much a work in progress, so it is not ready for use.
To build a simple
zstd binary that will use stdin and stdout:
And to test it with the input/output cases in
Writing a decoder in Wuffs takes more time, but the end result is an implementation that is safe and can be used in many languages without linking against C.
For example, that would mean no cgo overhead with Go, and safer code for languages like Rust. Though that is somewhere in the future - see the roadmap.
If you're after a zstd implementation that works today, use https://github.com/DataDog/zstd.
This is the current progress of the decoder.
These items are required for a stable 1.0 release: