6 releases
Uses new Rust 2024
| 0.0.0-alpha.6 | Dec 10, 2025 |
|---|---|
| 0.0.0-alpha.5 | Aug 30, 2025 |
#243 in Finance
149 downloads per month
72KB
1.5K
SLoC
Polar client library for Rust
[!WARNING] THIS LIBRARY IS IN A VERY EARLY STAGE, PLEASE BE CAREFUL.
Features
Checkouts
| Description | Status |
|---|---|
| Create checkout session | ✅ |
| Get checkout session | ✅ |
| List checkout sessions | ✅ |
| Update checkout session | ⏳ |
| Get checkout session from client | ⏳ |
| Update checkout session from client | ⏳ |
| Confirm checkout session from client | ⏳ |
Subscriptions
| Description | Status |
|---|---|
| Get subscription | ✅ |
| List subscriptions | ✅ |
| Update subscription | ✅ |
| Revoke subscription | ✅ |
Products
| Description | Status |
|---|---|
| Get product | ✅ |
| List products | ✅ |
| Create product | ✅ |
| Update product | ✅ |
| Update product benefits | ✅ |
Events
| Description | Status |
|---|---|
| Ingest events | ✅ |
| Get event | ✅ |
| List events | ⏳ |
Meters
| Description | Status |
|---|---|
| Create meter | ✅ |
| Get meter | ✅ |
| List meters | ✅ |
| Update meter | ✅ |
| Get meter quantities | ✅ |
Getting started
- Installation
cargo add polar-rs
- Example usage
use polar_rs::Polar;
let polar = Polar::new("https://sandbox-api.polar.sh/v1/", "<YOUR ACCESS TOKEN>");
Dependencies
~8–24MB
~279K SLoC