strava-wrapper

Crates.iostrava-wrapper
lib.rsstrava-wrapper
version0.0.1
created_at2025-09-20 17:30:25.092831+00
updated_at2025-09-20 17:30:25.092831+00
description[WIP] A Rust wrapper for the Strava API
homepage
repositoryhttps://github.com/MattBarkway/strava-wrapper
max_upload_size
id1848060
size71,962
Matt Barkway (MattBarkway)

documentation

README

Strava API Wrapper

An asynchronous wrapper for the Strava API, written in Rust.

This library provides a builder-style interface for accessing Strava API endpoints.

Currently supported:

  • Activities
  • Comments
  • Kudos

Coming soon:

  • Athletes
  • Clubs
  • Gear
  • Routes
  • Segments
  • SegmentEfforts
  • Uploads

Installation

Add this to your Cargo.toml:

[dependencies]
strava-api-wrapper = "0.1.0"

Usage

use strava_api::StravaAPI;

let api = StravaAPI::new("https://www.strava.com/api", "YOUR_ACCESS_TOKEN");

// Get an activity by ID
let activity = api
    .activities()
    .get()
    .id(123)
    .send()
    .await?;
// Get comments for activity by ID
let comments = api.activities()
    .comments()
    .get()
    .id(123)
    .per_page(10)
    .page(2)
    .send()
    .await?;

Testing

cargo test
Commit count: 10

cargo fmt