Skip to content

Commit

Permalink
Upgrade to 3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
max-ipinfo committed Aug 28, 2024
1 parent 0a2eeac commit 36f3a7b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[package]
name = "ipinfo"
description = "ipinfo: A Rust library for IPInfo"
version = "3.0.0"
version = "3.0.1"
authors = [
"Amr Ali <[email protected]>",
"Uman Shahzad <[email protected]>",
"Umar Farooq <[email protected]>",
"Fayzan Ahmad <[email protected]>",
"IPinfo Releases <[email protected]>",
]
edition = "2021"
license = "Apache-2.0"
Expand Down
14 changes: 9 additions & 5 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 = "3.0.0"
ipinfo = "3.0.1"
```

## Getting Started
Expand All @@ -29,19 +29,23 @@ data fields such as the IP type and company information. To get the complete lis
information on an IP address and make more requests per day see [https://ipinfo.io/pricing](https://ipinfo.io/pricing).

## Examples

There are several ready-to-run examples located in the `/examples` directory. These can be run directly, replacing `<token>` with your access token

```bash
cargo run --example lookup -- <token>
```

```bash
cargo run --example lookup_batch -- <token>
```

```bash
cargo run --example get_map
```

The `lookup` example above looks more or less like

```rust
use ipinfo::{IpInfo, IpInfoConfig};
#[tokio::main]
Expand All @@ -66,10 +70,10 @@ async fn main() {

## Features

* Smart LRU cache for cost and quota savings.
* Structured and type-checked query results.
* Bulk IP address lookup using IPinfo [batch API](https://ipinfo.io/developers/batch).
* Locate IPs on a World Map.
- Smart LRU cache for cost and quota savings.
- Structured and type-checked query results.
- Bulk IP address lookup using IPinfo [batch API](https://ipinfo.io/developers/batch).
- Locate IPs on a World Map.

#### Internationalization

Expand Down

0 comments on commit 36f3a7b

Please sign in to comment.