Includes prior-session patches (carry forward so the app compiles): - crates/gpui/build.rs: cross-compile manifest fix - crates/gpui/src/platform.rs: PlatformWindow::activate_with_token trait method - crates/gpui/src/window.rs: Window::activate_with_token public API - crates/gpui_linux/src/linux/wayland/window.rs: WaylandWindow::activate_with_token + activate() keyboard-serial fix Plus the focus-serial fix: - serial.rs: SerialKind::KeyboardEnter - client.rs: store wl_keyboard.enter serial; latest_serial_of() Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
24 lines
606 B
Bash
Executable File
24 lines
606 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
if [[ ! " $* " == *" -p "* && ! " $* " == *" --package "* ]]; then
|
|
set -- "$@" --workspace
|
|
fi
|
|
|
|
set -x
|
|
"${CARGO:-cargo}" clippy "$@" --release --all-targets --all-features -- --deny warnings
|
|
|
|
# If local, run other checks if we have the tools installed.
|
|
if [[ -z "${GITHUB_ACTIONS+x}" ]]; then
|
|
which cargo-machete >/dev/null 2>&1 || exit 0
|
|
cargo machete
|
|
|
|
which typos >/dev/null 2>&1 || exit 0
|
|
typos --config typos.toml
|
|
|
|
which buf >/dev/null 2>&1 || exit 0
|
|
buf lint crates/proto/proto
|
|
buf format --diff --exit-code crates/proto/proto
|
|
fi
|