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