https://github.com/tedbyron/pokeapi-rs
Rust bindings/wrapper for PokéAPI v2
https://github.com/tedbyron/pokeapi-rs
api api-wrapper pokeapi rust
Last synced: 4 months ago
JSON representation
Rust bindings/wrapper for PokéAPI v2
- Host: GitHub
- URL: https://github.com/tedbyron/pokeapi-rs
- Owner: tedbyron
- License: apache-2.0
- Created: 2021-09-30T14:04:34.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-27T17:45:10.000Z (almost 4 years ago)
- Last Synced: 2025-08-28T09:19:01.021Z (5 months ago)
- Topics: api, api-wrapper, pokeapi, rust
- Language: Rust
- Homepage:
- Size: 313 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
pokeapi-rs
Rust bindings/wrapper and client for PokéAPI v2.
WIP with future support for request/response/image caching and sync/async clients.
With the `ureq` client:
```toml
[dependencies]
pokeapi = "1"
```
With the `reqwest` client:
```toml
[dependencies.pokeapi]
version = "1"
default-features = false
features = ["client-reqwest"]
```
# Usage
```rs
use pokeapi::Client;
let client = Client::new();
// Get a resource by name:
let pikachu = client.pokemon('pikachu')
// Or by ID:
let pikachu = client.pokemon('25')
```
TODO
- doc comment generation on model types from module name
- add endpoints to model through macro
- native tls - ureq needs `Agent` in `Client`
- cache
- CI for both sync/async and other platforms