Update the edition in all the listings' Cargo.toml

This commit is contained in:
Aaran Xu 2022-01-08 02:44:00 +08:00
parent 9dd1b807c4
commit 245f739e2d

8
tools/update-editions.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
set -eu
OLD_EDITION=2018
NEW_EDITION=2021
find listings/** -name "Cargo.toml" -exec sed -i '' "s/edition = \"$OLD_EDITION\"/edition = \"$NEW_EDITION\"/g" '{}' \;