⚙️

AtCoder に Rust で参加するための準備

2022/09/14に公開

概要

AtCoder に Rust で参加するための環境構築手順についてまとめる

Rust

install

https://www.rust-lang.org/ja/tools/install

AtCoder のサポートツール

README に沿って install

https://github.com/tanakh/cargo-atcoder

cargo-atcoder.toml の設定

以下は変更箇所のみ。dependencies, template はお好きに。

[atcoder]
use_cross = true

[project]
rustc_version = "1.42.0" # AtCoder は `1.42.0` に対応

[dependencies]
...

template = """
...
"""

Cargo.toml の設定

プロジェクト作成 で作成される Cargo.toml の edition を edition = "2018" のように修正する

参考記事

Discussion