Adding option_chain library as a dependency

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

cargo add option-chain

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

option-chain = "0.1.2"

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

Back to the crate overview.