https://github.com/phrohdoh/pokeapi-rs
A Rust-language library ("crate") that provides programatic access to https://pokeapi.co/
https://github.com/phrohdoh/pokeapi-rs
pokeapi pokemon rust
Last synced: 3 months ago
JSON representation
A Rust-language library ("crate") that provides programatic access to https://pokeapi.co/
- Host: GitHub
- URL: https://github.com/phrohdoh/pokeapi-rs
- Owner: phrohdoh
- Created: 2017-09-30T15:26:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-30T17:35:20.000Z (over 8 years ago)
- Last Synced: 2025-03-22T06:26:42.504Z (10 months ago)
- Topics: pokeapi, pokemon, rust
- Language: Rust
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `pokeapi`
## What is this project?
The `pokeapi` library ("crate" in the Rust ecosystem) allows applications to retrieve data about [Pokémon](https://en.wikipedia.org/wiki/Pok%C3%A9mon) from the [pokeapi](https://pokeapi.co) service.
## Getting the code
From your shell:
```sh
git clone git@github.com:Phrohdoh/pokeapi-rs.git
```
## Building the crate
From your shell:
```sh
# from the root of the project (the directory containing the Cargo.toml file)
cargo build
```
## Running the included command-line application
From your shell:
```sh
# from the root of the project (the directory containing the Cargo.toml file)
cargo run --features=clap -- --name=pikachu
```
When you run the above command you should see this output:
```
Pokemon { id: 25, name: "pikachu", base_experience: 112, height: 4, is_default: true, order: 32, weight: 60 }
```