A very simple urlshortener for Rust.
This library aims to implement only URL shortener services which do not require any authentication (ex: goo.gl, bit.ly) and to provide an interface as minimal and simple as possible.
The reason for this is that users of such a library might only need to get the shortened URL, rather than a service using authentication. This is also a reason that this library aims to use as few dependencies as possible.
Currently the following URL shorteners are implemented:
bn.gy
is.gd
readability.com
v.gd
The following services are supported, but are discouraged from use, due to restrictions such as rate limits:
psbe.co
rlu.ru
```rust extern crate urlshortener;
use urlshortener::UrlShortener;
fn main() { let us = UrlShortener::new(); let longurl = "https://google.com"; println!("Short url for google: {:?}", us.trygenerate(long_url)); } ```
This project is licensed under the MIT license.