acr-cli-0.4.4 is not a library.
acr
AtCoder competitive programming CLI tool for Rust.
Install
Prebuilt binaries (fastest, no Rust toolchain required):
# Linux / macOS
|
# Windows (PowerShell)
|
# Homebrew (macOS / Linux)
Via Cargo:
# If you already have cargo-binstall (fetches the prebuilt binary)
# From source (compiles locally)
Setup
Usage
# From a problem directory
# From a contest directory
# From outside the contest directory
# Session management
# Configuration
Workspace Structure
acr new abc001 generates:
abc001/
├── Cargo.toml # [workspace]
├── a/
│ ├── Cargo.toml
│ ├── src/main.rs # Generated from template
│ └── tests/
│ ├── 1.in
│ └── 1.out
├── b/
│ └── ...
Configuration
Config files are stored in ~/.config/acr/:
config.toml- Editor and browser settingstemplate.rs- Source code templatesession.json- Login session
Template
acr init creates a default template at ~/.config/acr/template.rs:
use input;
Edit this file to customize the boilerplate generated for each problem.
Releasing (maintainers)
Releases are automated with release-please and crates.io Trusted Publishing:
- Merge PRs to
mainusing Conventional Commits (feat:,fix:,chore:,feat!:for breaking). - A Release PR is automatically opened by release-please with the version bump and CHANGELOG updates.
- Merging the Release PR tags
vX.Y.Zand publishes a GitHub Release. - The tag push triggers
.github/workflows/publish.yml, which uses OIDC to obtain a short-lived crates.io token and runscargo publish.
One-time setup on crates.io is required before the first automated publish: visit the acr-cli crate settings on crates.io and register the GitHub repo t-seki/acr with workflow filename publish.yml as a trusted publisher.
License
MIT