v0.3.2
What's new in v0.3.2
Fixes
- RUSTSEC-2025-0134: removed
rustls-pemfiledependency (archived, unmaintained since August 2025). PEM parsing now usesrustls-pki-types::pem::PemObjectwhich was already in the dependency tree viarustls. Zero new dependencies, one direct dependency removed. - SonarCloud code duplication: reduced duplicated code from 41 blocks (736 lines) to 29 blocks (444 lines, all in
carbon_profiles.rsdata tables). Five refactorings:impl_energy_state!macro inenergy_state.rseliminates the identicalScaphandreState/CloudEnergyStatewrapper implsbuild_per_trace_finding()helper indetect/mod.rseliminates the duplicatedFindingstruct literal betweenn_plus_one.rsandslow.rsemit_report_and_gate()helper inmain.rseliminates the duplicated format/emit/gate logic betweencmd_analyzeandcmd_tempoFetchError+fetch_get()inhttp_client.rseliminates the duplicated HTTP fetch logic betweenscaphandre/scraper.rsandcloud_energy/scraper.rstest_scrape_fixture()helper inscaphandre/tests.rseliminates duplicated test setup
- SonarCloud cognitive complexity:
process_traces()refactored from 19 to under 15 by extractingrecord_slow_durations()andemit_findings_and_update_metrics()
Install
# Prebuilt binaries (Linux amd64/arm64, macOS arm64, Windows amd64)
curl -LO https://github.com/robintra/perf-sentinel/releases/download/v0.3.2/perf-sentinel-linux-amd64
chmod +x perf-sentinel-linux-amd64
sudo mv perf-sentinel-linux-amd64 /usr/local/bin/perf-sentinel# From crates.io
cargo install perf-sentinel# Docker
docker pull robintrassard/perf-sentinel:0.3.2Also available on GHCR: ghcr.io/robintra/perf-sentinel:0.3.2
Verify the binary against SHA256SUMS.txt:
curl -LO https://github.com/robintra/perf-sentinel/releases/download/v0.3.2/SHA256SUMS.txt
sha256sum -c SHA256SUMS.txt --ignore-missingFull diff: v0.3.1...v0.3.2