3 releases (breaking)

new 0.3.1 Jan 22, 2025
0.2.0 Jan 10, 2025
0.1.0 Sep 18, 2024

#130 in Magic Beans

Download history 26/week @ 2024-12-02 34/week @ 2024-12-09 13/week @ 2024-12-16 10/week @ 2024-12-23 6/week @ 2024-12-30 129/week @ 2025-01-06 24/week @ 2025-01-13 126/week @ 2025-01-20

289 downloads per month

GPL-3.0 license

340KB
800 lines

scale-compressed

Crate to compress SCALE encoded data.

This crate is useful for compressing data that is sent over the network.

Example

use scale_compressed::ScaleCompressed;
use parity_scale_codec::{Encode, Decode};

let compressed = ScaleCompressed::new(vec![1u8, 2, 3, 4, 5]);
let encoded = compressed.encode();
let decoded = ScaleCompressed::<Vec<u8>>::decode(&mut &encoded[..]).unwrap();
assert_eq!(vec![1, 2, 3, 4, 5], decoded.0);

License: GPL-3.0 OR Apache-2.0

Dependencies

~95–135MB
~2.5M SLoC