AgentStack
SKILL verified MIT Self-run

Rust Rt Audit

skill-gertsylvest-meta-team-rust-rt-audit · by gertsylvest

Audit a Rust DSP crate for real-time-safety violations — verifies `#![no_std]`, no `alloc` dependency, `panic = "abort"`, runs targeted clippy lints, greps for banned constructs in the hot path, and scans the compiled LLVM-IR for allocator symbols. Designed to be run on any Rust DSP crate before merge.

No reviews yet
0 installs
0 views
view→install

Install

$ agentstack add skill-gertsylvest-meta-team-rust-rt-audit

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README — it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-gertsylvest-meta-team-rust-rt-audit)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming — see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps — measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Rust Rt Audit? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Rust Real-Time Audit

Verify that a Rust DSP crate respects the real-time-safety rules:

  1. The crate is #![no_std] and does not depend on alloc.
  2. The crate uses panic = "abort" so panics cannot unwind across an FFI or worklet boundary.
  3. No clippy-detectable panic-prone constructs (unwrap, expect, slice indexing, integer overflow) are present.
  4. No banned heap/blocking constructs (Vec::, Box::, Mutex, format!, println!, etc.) appear in the source.
  5. The compiled LLVM-IR contains no calls to __rust_alloc / __rust_realloc / __rust_dealloc.

The first four are cheap and run in seconds. The fifth is the authoritative check — a clean grep can lie, but an IR with no allocator symbols cannot.

Requirements

  • rustup with a stable toolchain.
  • cargo (bundled with rustup).
  • The crate being audited must compile.

Optional but recommended:

  • clippy component (rustup component add clippy) for the lint pass. The script skips clippy cleanly if it is missing.

Instructions

The argument is in $ARGUMENTS. Pass it directly to the audit script:

bash "$(dirname "$0")/audit.sh" $ARGUMENTS

The argument is the path to the crate directory (the one containing Cargo.toml).

Output sections

| Section | What it reports | |---|---| | NO_STD | Whether #![no_std] is declared in src/lib.rs | | NO_ALLOC_DEP | Whether the crate has any dependency on alloc (direct or via Cargo.toml) | | PANIC_ABORT | Whether panic = "abort" is set in the release profile | | CLIPPY | Lint results from a curated set of panic/allocation-detecting lints | | HOT_PATH_GREP | Grep hits for banned constructs in src/**.rs | | LLVM_IR_ALLOC | Whether __rust_alloc* symbols appear in the release LLVM-IR |

Typical usage

# Audit a single DSP crate
bash audit.sh ./rust/audio-dsp

# Audit every DSP crate in a workspace
for crate in rust/dsp-*; do bash audit.sh "$crate"; done

What to look for

  • NO_STD failing is a structural problem — the crate should be split so DSP code lives in a no_std crate and any std-dependent code moves to a sibling crate.
  • NO_ALLOC_DEP failing means a transitive dependency pulled in alloc. Use cargo tree -e features to find the culprit and either gate it behind a feature flag or replace it.
  • PANIC_ABORT failing is a one-line Cargo.toml fix.
  • CLIPPY or HOT_PATH_GREP hits require code changes — see the agent profile's Real-Time-Safe Rust section for the rationale and the safe replacements.
  • LLVM_IR_ALLOC failing despite a clean source grep usually means a third-party crate is allocating. cargo tree + the IR's call site (look at the function name preceding call __rust_alloc) identify the source.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.