tinyurl-rs 0.2.0

Crate to simplify using tinyurl.com to shorten long urls in async rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use thiserror::Error;

#[derive(Error, Debug)]
pub enum Error {
    #[error("reqwest error:{0}")]
    ReqwestError(#[from] reqwest::Error),

    #[error("parse error:{0}")]
    UrlParseError(#[from] url::ParseError),
}

pub type Result<T> = std::result::Result<T, Error>;