Skip to content

Commit

Permalink
upgrade to 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
UmanShahzad committed Nov 27, 2023
1 parent 836e8b5 commit e55c808
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "ipinfo"
description = "ipinfo: A Rust library for IPInfo"
version = "2.2.0"
version = "3.0.0"
authors = ["Amr Ali <[email protected]>", "Uman Shahzad <[email protected]>", "Umar Farooq <[email protected]>", "Fayzan Ahmad <[email protected]>"]
edition = "2018"
license = "Apache-2.0"
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ To use IPinfo, add the following to your `Cargo.toml` file.

```toml
[dependencies]
ipinfo = "2.2.0"
ipinfo = "3.0.0"
```

## Getting Started
Expand Down Expand Up @@ -73,10 +73,10 @@ async fn main() {

#### Internationalization

When looking up an IP address, the `response` includes `country_name` which is the country name based on American English, `is_eu` which returns `true` if the country is a member of the European Union (EU), `country_flag` which includes the emoji and Unicode of a country's flag, `country_currency`
which includes the code and symbol of a country's currency, `country_flag_url` which returns a public link to the country's flag image as an SVG which can be used anywhere. and `continent` which includes the code and name of the continent.
When looking up an IP address, the `response` includes `country_name` which is the country name based on American English, `is_eu` which returns `true` if the country is a member of the European Union (EU), `country_flag` which includes the emoji and Unicode of a country's flag, `country_currency`
which includes the code and symbol of a country's currency, `country_flag_url` which returns a public link to the country's flag image as an SVG which can be used anywhere. and `continent` which includes the code and name of the continent.

```rust
```rust
let r = ipinfo.lookup("8.8.8.8");
println!("{}: {}", "8.8.8.8", r.country_name) // United States
println!("{}: {:?}", "8.8.8.8", r.is_eu) // Some(false)
Expand Down

0 comments on commit e55c808

Please sign in to comment.