lz-str-rs
A port of lz-string to Rust.
Installing
Add the following to your Cargo.toml
file:
[]
= "0.1.0"
Getting Started
// The demonstrated functions correspond with `LZString.compress` and `LZString.decompress` from the JS version.
See the examples directory for more examples.
Features
rustc-hash
: This feature will replace some internal maps' hashers with rustc-hash,
boosting performance at the cost of not using a DOS-resistant hasher.
Testing
Benching
Bindings
Authors
adumbidiot (Nathaniel Daniel)
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contributing
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.