5 livrables d'industrialisation posés avant la phase 13 (client réel). - .gitlab-ci.yml : pipeline minimal (fmt-check + tests core + tests frontend nightly). Pas de cross-compile Redox dans le MVP. - rustfmt.toml + fmt.sh : config formatter racine + boucle sur les 23 crates ; fmt sweep appliqué (d'où les diffs cosmétiques). - tracing dans wayland-frontend : 22 println/eprintln remplacés par debug/info/warn/error selon sévérité. Préfixe "[frontend]" supprimé (le target tracing le fournit). - tracing-subscriber dans le compositor : TeeWriter écrit sur stdout + /scheme/debug, filtre via RUST_LOG (défaut info). DebugSink/dlog supprimés. - 15 tests unitaires xdg-shell après extraction de 2 helpers libres (clamp_to_min_max + should_throttle_configure). Couvre compute_resize_geom, contraintes min/max et throttling configure. - LICENSE (GPLv3 texte officiel FSF) + .editorconfig. Total tests : 27 → 42 automatisés (compositor-core + frontend). Leyoda 2026 – GPLv3
27 lines
611 B
Bash
Executable file
27 lines
611 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Format toutes les crates du workspace logique (chacune autonome, pas de
|
|
# Cargo.toml racine — voir README pour la raison).
|
|
#
|
|
# Usage :
|
|
# ./fmt.sh # format
|
|
# ./fmt.sh --check # CI mode : exit 1 si non formatté
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
CHECK_FLAG=""
|
|
if [[ "${1:-}" == "--check" ]]; then
|
|
CHECK_FLAG="--check"
|
|
fi
|
|
|
|
fail=0
|
|
for crate in crates/*/; do
|
|
if [[ -f "$crate/Cargo.toml" ]]; then
|
|
echo "==> $crate"
|
|
if ! cargo fmt --manifest-path "$crate/Cargo.toml" -- $CHECK_FLAG; then
|
|
fail=1
|
|
fi
|
|
fi
|
|
done
|
|
|
|
exit $fail
|