Adding ip2location library as a dependency

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

cargo add ip2location

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

ip2location = "0.6.1"

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

Back to the crate overview.