# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # Rust check, lint, and format tasks ["rust:check"] description = "Check all Rust crates for errors" run = "cargo check --workspace" hide = true ["rust:lint"] description = "Lint Rust code with Clippy (deny warnings)" run = [ "cargo clippy --workspace --all-targets -- -D warnings", "cargo clippy --manifest-path e2e/rust/Cargo.toml --all-targets -- -D warnings", ] hide = true ["rust:format"] description = "Format Rust code" run = [ "cargo fmt --all", "cargo fmt --manifest-path e2e/rust/Cargo.toml --all", ] hide = true ["rust:format:check"] description = "Check Rust formatting" run = [ "cargo fmt --all -- --check", "cargo fmt --manifest-path e2e/rust/Cargo.toml --all -- --check", ] hide = true ["rust:verify:telemetry-off"] description = "Verify telemetry emission code is compiled out with --no-default-features" run = [ # Positive control: the default (telemetry-on) gateway must contain the # markers, so the absent checks below can never become silently vacuous. "cargo build -p openshell-server --bin openshell-gateway", "tasks/scripts/verify-telemetry-compiled-out.sh present target/debug/openshell-gateway", # Guard: telemetry-free builds must contain no telemetry markers. "cargo build -p openshell-server --bin openshell-gateway --no-default-features", "tasks/scripts/verify-telemetry-compiled-out.sh absent target/debug/openshell-gateway", "cargo build -p openshell-sandbox --bin openshell-sandbox --no-default-features", "tasks/scripts/verify-telemetry-compiled-out.sh absent target/debug/openshell-sandbox", ]