/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
v19.0.0
compiler/scripts/rustfmt.sh
12 строк
678 B
Joe Savona
Update copyrights to reference Meta instead of Facebook
03 апр 2024, 18:43
03 апр 2024, 18:43
f33e638
Код
Авторство
О чём код?
#!/usr/bin/env bash # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. set -eo pipefail # Executes rustfmt using a nightly build of the compiler # NOTE: this command must exactly match the Rust Lint command in .github/workflows/rust.yml rustup toolchain list | grep -q nightly-2023-08-01 || (echo "Expected Rust version missing, try running: 'rustup toolchain install nightly-2023-08-01'" && exit 1) grep -r --include "*.rs" --files-without-match "@generated" crates | xargs rustup run nightly-2023-08-01 rustfmt --config="skip_children=true" "$@"