Adding iron_test library as a dependency

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

cargo add --dev iron-test

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 iron-test

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

iron-test = "0.6.0"

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

Back to the crate overview.