Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

rust-ecosystemRust ecosystem 搜索

Agent Skill

rust-ecosystem 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

309

周安装

13

GitHub Stars

29

下载量

108
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:rust-ecosystem(Rust ecosystem 搜索)
来源仓库:https://github.com/huiali/rust-skills
仓库路径:skills/rust-ecosystem
安装命令:
npx skills add https://github.com/huiali/rust-skills --skill rust-ecosystem
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/huiali/rust-skills --skill rust-ecosystem

简介

用于查找、检索和筛选相关信息。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

  • 适合根据关键词或任务场景快速定位候选结果。
  • 可结合原始 README 进一步核验具体用法。
  • 安装前建议确认权限范围和是否会触发联网。
  • 需注意来源仓库的维护状态。rust-ecosystem 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Async Runtimes

RuntimeCharacteristicsUse Case
tokioMost popular, feature-richGeneral async applications
async-stdstd-like APIPrefer std-style APIs
smolMinimal, embeddableLightweight applications
async-executorsUnified interfaceNeed runtime portability
# Web services
tokio = { version = "1", features = ["full"] }
axum = "0.7"

# Lightweight
async-std = "1"

# Minimal
smol = "2"

Solution Patterns

Pattern 1: Web Service Stack

[dependencies]
# Async runtime
tokio = { version = "1", features = ["full"] }

# Web framework
axum = "0.7"

# Database
sqlx = { version = "0.7", features = ["runtime-tokio", "postgres"] }

# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"

# Error handling
anyhow = "1"
thiserror = "1"

# Tracing
tracing = "0.1"
tracing-subscriber = "0.3"

Pattern 2: CLI Tool Stack

[dependencies]
# Argument parsing
clap = { version = "4", features = ["derive"] }

# Error handling
anyhow = "1"

# Config
config = "0.13"
dotenvy = "0.15"

# Progress
indicatif = "0.17"

# Terminal colors
colored = "2"

Pattern 3: Data Processing

[dependencies]
# Parallelism
rayon = "1"

# CSV
csv = "1"

# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"

# HTTP client
reqwest = { version = "0.11", features = ["json", "blocking"] }

Web Frameworks

FrameworkCharacteristicsPerformance
axumTower middleware, type-safeHigh
actix-webHighest performanceHighest
rocketDeveloper-friendlyMedium
warpCompositional, filtersHigh
// axum example
use axum::{Router, routing::get, Json};
use serde::Serialize;

#[derive(Serialize)]
struct User {
    id: u64,
    name: String,
}

async fn get_user() -> Json<User> {
    Json(User {
        id: 1,
        name: "Alice".to_string(),
    })
}

let app = Router::new()
    .route("/user", get(get_user));

Serialization

LibraryCharacteristicsPerformance
serdeStandard choiceHigh
bincodeBinary, compactHighest
postcardno_std, embeddedHigh
ronReadable formatMedium
use serde::{Serialize, Deserialize};

#[derive(Serialize, Deserialize)]
struct User {
    id: u64,
    name: String,
}

// JSON
let json = serde_json::to_string(&user)?;
let user: User = serde_json::from_str(&json)?;

// Binary (more efficient)
let bytes = bincode::serialize(&user)?;
let user: User = bincode::deserialize(&bytes)?;

HTTP Clients

LibraryCharacteristics
reqwestMost popular, easy to use
ureqSync, simple
surfAsync, modern
hyperLow-level, flexible
// reqwest - async
let response = reqwest::Client::new()
    .post("https://api.example.com")
    .json(&payload)
    .send()
    .await?
    .json::<Response>()
    .await?;

// ureq - sync (no async runtime needed)
let response: Response = ureq::post("https://api.example.com")
    .send_json(&payload)?
    .into_json()?;

Databases

TypeLibrary
ORMsqlx, diesel, sea-orm
Raw SQLsqlx, tokio-postgres
NoSQLmongodb, redis
Connection poolsqlx, deadpool, r2d2
// sqlx with compile-time checked queries
use sqlx::PgPool;

let pool = PgPool::connect(&database_url).await?;

let user = sqlx::query_as!(
    User,
    "SELECT id, name FROM users WHERE id = $1",
    user_id
)
.fetch_one(&pool)
.await?;

Concurrency & Parallelism

ScenarioRecommendation
Data parallelismrayon
Work stealingcrossbeam, tokio
Channelstokio::sync, crossbeam, flume
Atomicsstd::sync::atomic
// rayon - easy parallelism
use rayon::prelude::*;

let sum: i32 = data
    .par_iter()
    .map(|x| expensive_computation(x))
    .sum();

Error Handling

LibraryUse Case
thiserrorLibrary error types
anyhowApplication error propagation
snafuStructured errors
// thiserror - for libraries
use thiserror::Error;

#[derive(Error, Debug)]
pub enum MyError {
    #[error("I/O error: {0}")]
    Io(#[from] std::io::Error),

    #[error("Invalid data: {msg}")]
    Invalid { msg: String },
}

// anyhow - for applications
use anyhow::{Context, Result};

fn load_config() -> Result<Config> {
    let content = std::fs::read_to_string("config.toml")
        .context("failed to read config file")?;

    toml::from_str(&content)
        .context("failed to parse config")
}

Common Tools

ScenarioLibrary
CLI parsingclap (v4), structopt
Loggingtracing, log
Configconfig, dotenvy
Testingtempfile, rstest, proptest
Timechrono, time
Randomrand
Regexregex

Crate Selection Principles

  1. Active maintenance: Check GitHub activity, recent updates
  2. Download count: Reference crates.io downloads
  3. MSRV: Minimum Supported Rust Version compatibility
  4. Dependencies: Number and security of dependencies
  5. Documentation: Complete docs and examples
  6. License: MIT/Apache2 compatibility
# Check crate info
cargo info <crate-name>

# Check dependencies
cargo tree

# Security audit
cargo audit

# License check
cargo deny check licenses

Workflow

Step 1: Identify Need

What problem to solve?
  → Web service? Choose framework (axum/actix)
  → CLI tool? Use clap + anyhow
  → Data processing? Use rayon
  → Database access? Use sqlx

Step 2: Evaluate Options

Check:
  → crates.io download count
  → GitHub stars and activity
  → Documentation quality
  → Recent releases
  → Community support

Step 3: Verify Safety

# Security audit
cargo audit

# License compatibility
cargo deny check

# Dependency tree
cargo tree -i <crate>

Deprecated Patterns → Modern

DeprecatedModernReason
lazy_staticstd::sync::OnceLockstd built-in
rand::thread_rngrand::rng()New API
failurethiserror + anyhowMore popular
serde_deriveserde (unified)Simpler imports

Quick Reference

ScenarioRecommended Stack
Web serviceaxum + tokio + sqlx + serde
CLI toolclap + anyhow + config
Serializationserde + (json/bincode/postcard)
Parallel computerayon
Config managementconfig + dotenvy
Loggingtracing + tracing-subscriber
Testingtempfile + rstest + proptest
Date/timechrono or time

Review Checklist

When selecting crates:

  • Crate is actively maintained (updated within 6 months)
  • Good documentation and examples
  • Reasonable dependency count
  • No known security issues (cargo audit)
  • Compatible license (MIT/Apache2)
  • MSRV compatible with project
  • High download count and community usage
  • Stable API (1.0+ or widely used)

Verification Commands

# Search crates
cargo search <keyword>

# Get crate info
cargo info <crate-name>

# Check dependencies
cargo tree

# Security audit
cargo audit

# License check
cargo deny check

# Check for updates
cargo outdated

Common Pitfalls

1. Too Many Dependencies

Symptom: Long compile times, dependency conflicts

# ❌ Avoid: unnecessary dependencies
[dependencies]
# Don't need full tokio if only using channels
tokio = { version = "1", features = ["full"] }

# ✅ Better: minimal features
tokio = { version = "1", features = ["sync"] }

2. Unmaintained Crates

Symptom: Security vulnerabilities, incompatibilities

# Check last update
cargo info <crate-name>

# Check for alternatives
cargo search <similar-crate>

3. Version Conflicts

Symptom: Build failures, duplicate dependencies

# Diagnose conflicts
cargo tree -d

# Use same version across workspace
[workspace.dependencies]
serde = "1"

Related Skills

  • rust-async - Async runtime patterns
  • rust-web - Web framework usage
  • rust-error - Error handling libraries
  • rust-testing - Testing libraries
  • rust-performance - Performance-critical crates

Localized Reference

  • Chinese version: SKILL_ZH.md - 完整中文版本,包含所有内容

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.46%
按下载量换算38

Claude

30.38%
按下载量换算33

Cursor

19.39%
按下载量换算21

Gemini CLI

9.82%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/huiali/rust-skills --skill rust-ecosystem 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills