bouzuya.hatenablog.com

ぼうずやのにっき

ABC096 の A, B, C, D を解いた / Cargo.toml の version を埋め込む方法

ABC096 : AtCoder Beginner Contest 096 の A, B, C, D を解いた。


Cargo.toml に記載している version を埋め込む場合は CARGO_PKG_VERSION を使うと良い。 env! マクロでコンパイル時の値を &'static str として得られる。

https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-crates https://doc.rust-lang.org/std/macro.env.html https://doc.rust-lang.org/std/macro.option_env.html


Mindustry のインパクト 0078 までクリアした。砂はスクラップから粉砕機で得た。トリウムの大きな壁の後ろにヒューズ・スキャッター・パララックスを並べた。


今日のコミット。