Adding struct_patch library as a dependency

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

cargo add struct-patch

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

struct-patch = "0.10.4"

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

Back to the crate overview.