短网址核心功能
用于将原始网址转换成6个字符长度的短网址。
引入
[]
= { = "https://github.com/r7n/shorturl-core.git" }
直接使用
use short_url;
let url:String = "r7n.cc".to_string;
let shorted_url:String = short_url; # 3TrFk7
println!;
带 seed
use short_url_with_seed;
let url:String = "r7n.cc".to_string;
let shorted_url:String = short_url_with_seed; # 3KC4r5
println!;