Thanks to visit codestin.com
Credit goes to lib.rs

Adding expect_json library as a dependency

Run this command in a terminal, in your project's directory:

cargo add --dev expect-json

to add it a dev dependency (if it's used only in tests, not in the final product). To add it as a regular run-time dependency, run:

cargo add expect-json

To add it manually, edit your project's Cargo.toml file and add to the [dependencies] section:

expect-json = "1.9.0"

The expect_json library will be automatically available globally. Read the expect_json library documentation.

Back to the crate overview.