2 个版本
0.1.1 | 2021 年 5 月 18 日 |
---|---|
0.1.0 | 2021 年 4 月 8 日 |
#89 in #quote
10KB
57 行
kanye-rs
KAAS (卡恩耶作为服务)
从 kanye.rest API 打印随机卡恩耶名言。
作为命令行工具
安装它
$ cargo install kanye
使用它
$ kanye
Kanye says "One of my favorite of many things about what the Trump hat represents to me is that people can't tell me what to do because I'm black"
作为库
fn main() {
let quote = kanye::quote().unwrap();
println!("Kanye says \"{}\"", quote);
}
输出
Kanye says "We used to diss Michael Jackson the media made us call him crazy ... then they killed him"
依赖关系
~3–13MB
~130K SLoC