1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-07-05 14:10:29 +02:00

Update to Rust 2024 edition. (#2658)

This commit is contained in:
Andrew Walbran
2025-05-23 19:03:03 +01:00
committed by GitHub
parent db47709e87
commit fc6e5c7526
83 changed files with 150 additions and 149 deletions

View File

@ -25,7 +25,7 @@ else
# Back-date the sources to POT-Creation-Date. The content lives in two
# directories:
rm -r src/ third_party/
git restore --source "$(git rev-list -n 1 --before "$pot_creation_date" @)" src/ third_party/
git restore --source "$(git rev-list -n 1 --before "$pot_creation_date" @)" src/ third_party/ book.toml
# Set language and adjust site URL. Clear the redirects since they are
# in sync with the source files, not the translation.
export MDBOOK_BOOK__LANGUAGE=$book_lang

View File

@ -161,9 +161,11 @@ jobs:
MDBOOK_OUTPUT='{"xgettext": {"pot-file": "messages.pot"}}' mdbook build -d po
msgfmt -o /dev/null --statistics po/messages.pot
- name: Install mdbook-linkcheck
- name: Install mdbook-linkcheck2
if: contains(fromJSON(env.LINK_CHECKED_LANGUAGES), matrix.language)
run: cargo install mdbook-linkcheck --locked --version 0.7.7
run: |
cargo uninstall mdbook-linkcheck || true
cargo install mdbook-linkcheck2 --locked --version 0.9.1
- name: Build ${{ matrix.language }} translation
run: |
@ -210,6 +212,9 @@ jobs:
with:
fetch-depth: 0
- name: Update Rust
run: rustup update
- name: Setup Rust cache
uses: ./.github/workflows/setup-rust-cache

View File

@ -13,6 +13,6 @@ runs:
run: |
sudo apt-get update
sudo apt-get install -y texlive texlive-luatex texlive-lang-cjk texlive-lang-arabic librsvg2-bin fonts-noto
curl -LsSf https://github.com/jgm/pandoc/releases/download/3.6.2/pandoc-3.6.2-linux-amd64.tar.gz | tar zxf -
echo "$PWD/pandoc-3.6.2/bin" >> $GITHUB_PATH
curl -LsSf https://github.com/jgm/pandoc/releases/download/3.7.0.1/pandoc-3.7.0.1-linux-amd64.tar.gz | tar zxf -
echo "$PWD/pandoc-3.7.0.1/bin" >> $GITHUB_PATH
shell: bash

View File

@ -35,6 +35,9 @@ jobs:
with:
fetch-depth: 0 # We need the full history for build.sh below.
- name: Update Rust
run: rustup update
- name: Setup Rust cache
uses: ./.github/workflows/setup-rust-cache