optional_struct
Run this command in a terminal, in your project's directory:
cargo add optional_struct
To add it manually, edit your project's Cargo.toml file and add to the [dependencies] section:
Cargo.toml
[dependencies]
optional_struct = "0.5.2"
The optional_struct library will be automatically available globally. Read the optional_struct library documentation.
Back to the crate overview.