This is an implementation of the JSON-API v1 specification at jsonapi.org.
Add this crate to your Cargo.toml file,
[dependencies]
jsonapi = "0.3.0"
Examples of most serialization and deserialization cases can be found in the tests/ directory or the documentation.
The command cargo test
will run all tests. For more verbose output or output with cargo watch,
RUST_BACKTRACE=1 cargo test -- --nocapture
RUST_BACKTRACE=1 cargo watch "test -- --nocapture"
To run clippy, find a last known working version of nightly that runs with clippy,
rustup install nightly-2017-03-01
rustup run nightly-2017-03-01 cargo install clippy
rustup run nightly-2017-03-01 cargo clippy