10 个版本 (重大更新)
0.8.0 | 2023年1月8日 |
---|---|
0.7.1 | 2021年10月18日 |
0.7.0 | 2021年3月2日 |
0.6.1 | 2020年10月13日 |
0.1.0 | 2018年11月16日 |
#2122 in 解析器实现
9,167 每月下载量
用于 3 crates
24KB
556 代码行
har-rs
HTTP 存档格式 (HAR) 序列化和反序列化库,使用 Rust 编写。
安装
将以下内容添加到您的 Cargo.toml
文件中
[dependencies]
har = "0.7"
使用
最简单的示例
use har::from_path;
fn main() {
match har::from_path("path/to/file.har") {
Ok(spec) => println!("spec: {:?}", spec),
Err(err) => println!("error: {}", err)
}
}
有关完整库 API 文档,请参阅 docs.rs/har。
贡献
此项目遵循 semver,conventional commits 以及使用 mandrean/semantic-rs 的语义发布。
注意
灵感来源于 softprops/openapi。
依赖项
~2.6–3.5MB
~77K SLoC