#binary #nothing #literally #optimized #startup #external #no‑op

app no-op

A minimal no-op Rust binary optimized for fast startup

1 unstable release

new 0.1.0 Feb 14, 2025

#2 in #nothing

Download history 96/week @ 2025-02-11

96 downloads per month

MIT license

7KB
88 lines

no‑op

no‑op is a minimal Rust binary that literally does nothing.

Features

  • Ultra‑Minimal Binary: Contains only a main() function that does nothing.
  • Optimized for Speed: Uses Cargo release settings (e.g., panic = "abort", opt-level = "z", LTO, and a single codegen unit) to produce a fast‑startup executable.
  • No Dependencies: A self‑contained example without external dependencies.

Usage

Building

To build the binary in release mode, run:

cargo build --release

This will create an optimized executable in the target/release directory.

Running

Since the program does nothing, running it will immediately exit with status 0:

./target/release/no-op

Benchmarks

See benchmarks (after building) with:

cargo test --release -- --nocapture

No runtime deps