| Crates.io | trackio-rs |
| lib.rs | trackio-rs |
| version | 0.1.0 |
| created_at | 2026-01-20 01:35:32.01998+00 |
| updated_at | 2026-01-20 01:35:32.01998+00 |
| description | High-performance, thread-safe Rust client for Trackio experiment tracking. |
| homepage | https://github.com/gradio-app/trackio/tree/main/contrib/trackio-rs |
| repository | https://github.com/gradio-app/trackio |
| max_upload_size | |
| id | 2055625 |
| size | 58,009 |
trackio-rs is the high-performance Rust client for Trackio, the open-source experiment tracker built by Hugging Face.
This SDK enables systems engineers and ML researchers to log metrics from high-concurrency, production-grade environments with the safety and speed of Rust.
While the Python client is ideal for research, trackio-rs is built for:
parking_lot and reqwest for safe concurrent logging.Deploy your Trackio Space on Hugging Face: Deploy Trackio Template
Add this to your Cargo.toml:
[dependencies]
trackio-rs = "0.1.0"
Create your dashboard Space: https://huggingface.co/new-space?sdk=gradio&template=gradio-templates%2Ftrackio-dashboard
Once deployed, the iframed Space URL will be something like:
https://username-trackio-dashboard.hf.space (you can find the iframed URL by clicking the triple dot menu next to Settings and then clicking "Embed this Space")
Set environment variables and run the example:
export TRACKIO_SERVER_URL="https://your-space-url.hf.space"
export HF_TOKEN="hf_…"
export TRACKIO_PROJECT="rs-quickstart"
export TRACKIO_RUN="rs-run-1"
cargo run --example quickstart
Open your Space URL and select:
rs-quickstartrs-run-1Open the "Metrics" tab to view your logged metrics.
use trackio::Client;
use serde_json::json;
let client = Client::new()
.with_base_url("https://your-space-url.hf.space")
.with_project("my-project")
.with_run("my-run");
client.log(json!({"loss": 0.5, "acc": 0.8}), Some(0), None);
client.log(json!({"loss": 0.4, "acc": 0.82}), Some(1), None);
client.flush()?;
| Variable | Description | Default |
|---|---|---|
TRACKIO_SERVER_URL |
Base Trackio server URL | http://127.0.0.1:7860 |
TRACKIO_PROJECT |
Project name | - |
TRACKIO_RUN |
Run name | - |
HF_TOKEN |
Hugging Face token with write access | - |