rust-tooling

Create Rust crates, define dependencies, and build shell wrappers.

1|Updated Apr 10, 2024
One-click install
npx skills add https://github.com/EvaLok/schema-org-json-ld --skill rust-tooling-evalok
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-tooling
Source: https://github.com/EvaLok/schema-org-json-ld/tree/main/.claude/skills/rust-tooling
Command: npx skills add https://github.com/EvaLok/schema-org-json-ld --skill rust-tooling-evalok

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a streamlined process for creating, building, and integrating custom Rust-based command-line tools into the orchestrator's workflow, enhancing automation capabilities.

Core Features & Use Cases

  • Tool Creation: Guides you through setting up new Rust crates within the tools/rust/ workspace.
  • Build Process: Details how to compile Rust tools and create executable shell wrappers.
  • State Management: Integrates with the shared state-schema crate for typed access to docs/state.json.
  • Use Case: When a new verification step is needed that requires complex logic beyond jq, create a Rust tool to handle it, ensuring reproducible and efficient execution.

Quick Start

Use the Write tool to create tools/rust/crates/my-tool/src/main.rs with a clap CLI.

Frequently Asked Questions about rust-tooling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create custom Rust CLI tools for build automation?

You create custom Rust CLI tools for build automation by setting up new crates within the `tools/rust/` workspace, defining dependencies, and compiling the binaries for execution.

When should I use Rust tools instead of jq for workspace automation?

Use Rust tools instead of jq for workspace automation when a verification step requires complex logic beyond jq's capabilities, ensuring reproducible and efficient execution.

How do I build Rust binaries and create shell wrappers for execution?

You build Rust binaries and create shell wrappers by compiling the Rust crates within the workspace structure and implementing executable shell wrappers to integrate them into the orchestrator workflow.

How does Rust tooling integrate with state files for typed interaction?

Rust tooling integrates with state files by utilizing a shared `state-schema` crate, which enables typed access to the `docs/state.json` file for structured state management across the workspace.

Can I use a clap CLI for my custom Rust build tools?

Yes, you can use a clap CLI for your custom Rust build tools by creating the `main.rs` source file in the crate's `src` directory to define the command-line interface and automation logic.

What is the best way to manage dependencies in a Rust workspace for tooling?

The best way to manage dependencies in a Rust workspace for tooling is to define them within the individual crates created in the `tools/rust/` workspace, allowing shared schema integration and reproducible builds.