Skip to main content

decompress_zstd

Function decompress_zstd 

Source
pub fn decompress_zstd(bytes: &[u8]) -> Result<String>
Expand description

Decompress a zstd-compressed byte slice and return it as a UTF-8 string.

docs.rs serves rustdoc JSON as Content-Type: application/zstd with a .json.zst filename. This decompresses the raw bytes to a JSON string.