Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to 3.0.1 #58

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <amralicc@gmail.com>",
"Uman Shahzad <uman@mslm.io>",
"Umar Farooq <mail.umar.now@gmail.com>",
"Fayzan Ahmad <fayzanx@gmail.com>",
"IPinfo Releases <releases@ipinfo.io>",
]
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