Skip to main content

xrc

Crates.io PyPI License: MIT

A minimal CLI to give your Rust some exercise.

xrc turns a coding-problem URL into a ready-to-solve Rust project: it scrapes the problem page, writes a clean cargo project with the statement, constraints, and sample tests already wired up, and gets out of your way so you can focus on the fun part: solving it. It also tracks your progress as you go.

Install

With cargo:

cargo install xrc

Or, if you live in the Python world, grab the prebuilt binary from PyPI:

pip install xrc      # or: uv tool install xrc

Pull a problem

Point xrc at a problem you want to work on:

xrc pull https://dmoj.ca/problem/aplusb
xrc pull https://leetcode.com/problems/two-sum/

This creates a self-contained project under exercises/:

exercises/
└── a_plus_b/
    ├── Cargo.toml
    ├── src/
    └── tests/

The problem statement lives right in the source as comments, and the sample cases are already turned into tests. Open it up and start writing your solution.

Supported sites today: dmoj.ca and leetcode.com.

Check your progress

When you think you have it, let xrc run the tests for every exercise and keep score:

xrc check

Solved problems are remembered, so check skips them next time and only runs what's left. A few flags for when you need them:

xrc check --verbose   # show the full build and test output
xrc check --recheck   # re-run everything, even already-solved problems

Your progress is saved in exercises/.xrc_progress.json, so you can pick up right where you left off.

License

Released under the MIT License.

Metadata

Release files for xrc 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xrc 0.2.2
File Size Uploaded Provenance Actions
xrc-0.2.2.tar.gz 49.1 kB With provenance Details for xrc-0.2.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for xrc 0.2.2
File Interpreter ABI Platform Actions
xrc-0.2.2-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for xrc-0.2.2-py3-none-win_amd64.whl
xrc-0.2.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for xrc-0.2.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
xrc-0.2.2-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for xrc-0.2.2-py3-none-macosx_11_0_arm64.whl

Total release size: 9.1 MB

Release files / xrc-0.2.2.tar.gz

Download URL xrc-0.2.2.tar.gz
Size 49.1 kB
Tags Source
SHA-256 checksum
How to use checksums
871bde03b1c9e0a39f5946fc5a5941a7d3bf3838047349b2aef798e5b8815b67
BLAKE2b-256 checksum
How to use checksums
fef268e7b20022e3ac09659bcadd618c1861bc98419039e236e31ed99cd499b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Release files / xrc-0.2.2-py3-none-win_amd64.whl

Download URL xrc-0.2.2-py3-none-win_amd64.whl
Size 3.1 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
ecc5125a051be9ce6309c691388ba228def3ac10d4f993187721ab9251c784ab
BLAKE2b-256 checksum
How to use checksums
74b9085cf329b3df54023c49bbbf20f085056eb47bfe2f80e83d5b1b51b5ca78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Release files / xrc-0.2.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL xrc-0.2.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.1 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
89dad17310fc246e38e5bd23277d18838bad0a06c2ecd88ab93bb94d0d90ea02
BLAKE2b-256 checksum
How to use checksums
b6be31522aeff1439d66e936c1841532926c74f3640bc6ee3179911412650131
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Release files / xrc-0.2.2-py3-none-macosx_11_0_arm64.whl

Download URL xrc-0.2.2-py3-none-macosx_11_0_arm64.whl
Size 2.8 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7c2f05cff5523502b591a4b2ac1a154a35673c2df7d513edd1330b8380349344
BLAKE2b-256 checksum
How to use checksums
26a2d25eced5dd77cf09d5a93f584ef42abdf824b563864920ee0836249481d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Security for xrc 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for xrc-0.2.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.2 This release

4 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page