2 个版本
0.1.1 | 2020年11月6日 |
---|---|
0.1.0 | 2020年10月5日 |
#1972 在 开发工具
92,816 每月下载量
用于 password-rules-parser
16KB
410 行
一种打印简单代码检查信息的方式。
输出类似于 rustc 的。
lib.rs
:
一个用于使用给定源文本格式化打印代码检查错误的库。
API 非常简单,输出与 rustc 非常相似。
示例用法
let src = "highlight me";
let lint = PrettyLint::success(src)
.at(Span::range((1, 1), (1, src.len())))
.with_message("you have been highlighted")
.with_inline_message("look at this")
.with_file_path(file!());
println!("{}", lint);
依赖项
~0–9.5MB
~53K SLoC