no-op

Crates.iono-op
lib.rsno-op
version0.1.0
created_at2025-02-14 18:40:38.512543+00
updated_at2025-02-14 18:40:38.512543+00
descriptionA minimal no-op Rust binary optimized for fast startup.
homepagehttps://github.com/SauersML/no-op
repositoryhttps://github.com/SauersML/no-op
max_upload_size
id1555883
size6,987
(SauersML)

documentation

https://github.com/SauersML/no-op

README

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
Commit count: 12

cargo fmt