# Installation
## Requirements
- Rust 2021 edition (1.75+)
- Tokio async runtime
## Add to Cargo.toml
```toml
[dependencies]
phi-core = "0.7"
```
## Dependencies
phi-core brings in these key dependencies automatically:
| `tokio` | Async runtime (full features) |
| `serde` / `serde_json` | Serialization |
| `reqwest` | HTTP client for provider APIs |
| `reqwest-eventsource` | SSE streaming |
| `async-trait` | Async trait support |
| `tokio-util` | `CancellationToken` |
| `thiserror` | Error types |
| `tracing` | Logging |
## Feature Flags
All providers and built-in tools are included by default. Optional features:
| `openapi` | `openapiv3`, `serde_yaml` | Auto-generate tools from OpenAPI 3.0 specs |
Enable in `Cargo.toml`:
```toml
[dependencies]
phi-core = { version = "0.7", features = ["openapi"] }
```