short_url-rs

shorturl is a crate that is ported from https://github.com/Alir3z4/python-shorturl into Rust.

Quickstart

```rust use short_url::UrlEncoder;

let encoder = UrlEncoder::new("mn6j2c4rv8bpygw95z7hsdaetxuk3fq", 24);

// Encode a url with id 1, and a min length of 5. asserteq!(String::from("867nv"), e.encodeurl(1, 5));

// Decode a url into a usize. asserteq!(1, e.decodeurl("867nv").unwrap()); ```

License

Licensed under MIT as inherited from the orginal work at https://github.com/Alir3z4/python-short_url.