2个版本

0.1.1 2023年10月13日
0.1.0 2023年10月13日

#1528解析器实现

MIT/Apache

49KB
878

jsonapi-rs

License Documentation FOSSA Status

这是在jsonapi.org上的JSON-API v1规范的实现。

使用

将此crate添加到您的Cargo.toml文件中,

[dependencies]
jsonapi-rs = "*"

或者直接从Gitlab的master分支使用,

[dependencies]
jsonapi-rs = { git = "https://gitlab.com/cloud.yantra.oss/jsonapi-rust.git", branch = "main" }

大多数序列化和反序列化用例的示例可以在 tests/目录或文档中找到。

开发

注意 - 直到这个crate达到v1.0.0版本,不向后兼容的重大更改将在变更日志中宣布。

测试

命令 cargo test 将运行所有测试。对于更详细的输出或使用 cargo watch 的输出,

RUST_BACKTRACE=1 cargo test -- --nocapture
RUST_BACKTRACE=1 cargo watch "test -- --nocapture"

贡献

欢迎贡献。请使用常规格式添加测试并编写提交信息。Changelog使用clog工具更新。配置文件位于.clog.toml中。

当前配置适用于以feat:bug:test:doc:refactor:前缀的提交信息。

许可

FOSSA Status

依赖

~3.5–5MB
~109K SLoC