agentsclimarketplace

Rust build and compilation

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v2/skills/rust-build-and-compilation

Use when when you have Rust source code (such as the mzPeak format implementation at the repository root) and need to generate executable binaries or libraries for converting mass-spectrometry file formats, validating output files, or reading/writing domain-specific formats like mzPeak.From its SKILL.md

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill rust-build-and-compilation

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 15 stars15 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as CC-BY-4.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

5.9 KB, 951 tokens by cl100k_base, as published. Nobody here has run it

Rust Build and Compilation

License: restricted — no clear open-source license detected for the underlying tool; verify licensing before commercial use or redistribution. <!-- asb-license-banner -->

Summary

Compiling Rust source code into executable binaries and libraries using cargo, the Rust package manager. This skill is essential for constructing command-line tools and libraries for scientific data format conversion and validation.

When to use

When you have Rust source code (such as the mzPeak format implementation at the repository root) and need to generate executable binaries or libraries for converting mass-spectrometry file formats, validating output files, or reading/writing domain-specific formats like mzPeak.

When NOT to use

  • Input is already a pre-compiled binary or distributed package—skip to execution instead of rebuilding
  • Rust toolchain is not installed or target platform lacks required system libraries—install prerequisites first
  • You only need to read or inspect source code without execution—use a text editor or code browser instead

Inputs

  • Rust source code repository with Cargo.toml manifest
  • Rust version (typically 1.56 or later)
  • System libraries and development headers required by dependencies

Outputs

  • Compiled executable binaries in target/debug/ or target/release/
  • Static or dynamic libraries (.rlib, .so, .dylib, .dll)
  • Intermediate build artifacts in target/ directory

How to apply

Clone or access the target Rust repository containing the source code and Cargo.toml manifest. Execute cargo build (or cargo build --release for optimized production binaries) from the repository root to compile all dependencies and source code into an executable. The build process resolves dependencies declared in Cargo.toml, compiles them in the correct order, and produces binaries in the target/ directory. Verify successful compilation by checking that no errors are reported and that the expected binary exists at target/debug/ or target/release/ depending on build mode. For reproducible builds, inspect the Cargo.lock file to ensure dependency versions are pinned.

Related tools

Examples

cd /path/to/HUPO-PSI/mzPeak && cargo build --release

Evaluation signals

  • Cargo build completes without errors or warnings (or only expected warnings); exit code is 0
  • Binary executable or library file exists at expected path in target/debug/ or target/release/ with non-zero file size
  • Running the compiled binary with --help or --version produces expected output and does not segfault
  • If building a library, verify that generated .rlib or .so file can be linked by downstream code or inspected with cargo metadata
  • Timestamps on output binaries are newer than source .rs files, confirming recompilation occurred

Limitations

  • mzPeak implementation is a work in progress with no stability guaranteed; compilation may fail or produce unstable binaries across versions
  • Python and R implementations are read-only and do not include full Rust compilation workflow; only the Rust implementation at repository root supports reading and writing
  • Compilation requires Rust toolchain to be pre-installed on the system; no pre-built binaries are mentioned in the documentation
  • Build times depend on the number and complexity of dependencies; cold builds can be slow on first compilation

Evidence

  • [readme] Build process and expected outputs: "Build the Rust CLI tool using cargo (the Rust package manager). 3. Execute the conversion command-line tool"
  • [readme] Primary language and location of implementation: "The primary work shown here is written in Rust at the repository root, including a library for reading and writing mzPeak files, as well as command line tools for converting existing formats into"
  • [readme] Build tool and environment setup: "The simplest path uses uv and the provided Justfile: ```bash just setup # create .venv and install MkDocs Material just serve # live-reload"
  • [readme] Work-in-progress status affecting stability: "NOTE: This is a work in progress, no stability is guaranteed at this point"

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.