gyscos / zstd-rs

A rust binding for the zstd compression library.
MIT License
510 stars 107 forks source link

zstd-sys: Link ZSTD_getErrorCode #222

Closed DoumanAsh closed 1 year ago

DoumanAsh commented 1 year ago

This is useful utility if one wants to examine error code as zstd, despite what its crappy documentation says, has stable enumeration of errors that you can use. So it would be good to link it too It is a bit hidden behind in headers https://github.com/facebook/zstd/blob/dev/lib/zstd_errors.h#L106 zstd.h doesn't really expose it, but these symbols are public so maybe it would be ok to put bindgen on zstd_errors.h too?