Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Cocoindex Rust

ASecurity

Comprehensive toolkit for developing with the CocoIndex Rust API. Use when building high-performance operators, embedding the engine in Rust applications, or extending the core framework. Covers LibContext management, custom native operators, and direct execution control.

2 stars
0 votes
0 copies
0 views
Added 9/27/2026
databasespythonrustapidatabaseperformancedocumentation

Works with

api

Security Analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned 9/27/2026

$npx -y skills add David-Li0406/meta-skill-evloving --skill cocoindex-rust --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cocoindex Rust?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Cocoindex Rust
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-cocoindex-rust/badge)](https://www.skillsdirectory.com/skills/david-li0406-cocoindex-rust)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
# SPDX-FileCopyrightText: 2026 Knitli Inc.
# SPDX-FileContributor: Adam Poulemanos <adam@knit.li>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

name: cocoindex-rust
description: Comprehensive toolkit for developing with the CocoIndex Rust API. Use when building high-performance operators, embedding the engine in Rust applications, or extending the core framework. Covers LibContext management, custom native operators, and direct execution control.
---

# CocoIndex Rust API

## Overview

CocoIndex's Rust API provides low-level, high-performance access to the core incremental dataflow engine. Unlike the Python API which focuses on flow definition and orchestration, the Rust API allows for:

1.  **Embedding the Engine** - Run CocoIndex within Rust services.
2.  **Native Operators** - Implement zero-overhead sources, functions, and targets.
3.  **Deep Integration** - Direct access to `LibContext`, database pools, and execution plans.

## Resources

Detailed documentation for each part of the system:

- **[API Surface](resources/api_surface.md)**: Overview of modules and crate structure.
- **[Setup & Context](resources/api_setup.md)**: How to initialize `LibContext`, settings, and access flows.
- **[Sources](resources/api_source.md)**: Implementing `SourceFactory` and `SourceExecutor` for custom data ingestion.
- **[Functions](resources/api_function.md)**: Implementing `SimpleFunctionFactory` for high-performance transformations.
- **[Types](resources/api_types.md)**: Understanding `Value`, `KeyPart`, and schema systems.

## When to Use This Skill

Use when users request:

- "Integrate CocoIndex into a Rust application"
- "Implement a high-performance custom source in Rust"
- "How do I write a native Rust function for CocoIndex?"
- "Access internal flow state or database pools from Rust"
- "What is `LibContext`?"
- "Explain the `Value` enum in CocoIndex Rust"

## Common Usage Patterns

### 1. Initialization

See [resources/api_setup.md](resources/api_setup.md) for full details.

```rust
use cocoindex::settings::Settings;
use cocoindex::lib_context::create_lib_context;

let settings = Settings::default();
let lib_ctx = create_lib_context(settings).await?;
```

### 2. Implementing a Native Source

See [resources/api_source.md](resources/api_source.md).

Implement `SourceFactory` and `SourceExecutor` to bridge external data systems (Kafka, Postgres, APIs) into CocoIndex efficiently.

### 3. Implementing a Native Function

See [resources/api_function.md](resources/api_function.md).

Implement `SimpleFunctionFactory` for computationally intensive tasks where Python overhead is undesirable.

Attribution

David-Li0406David-Li0406
View sourceSee grades on GitHubMore from David-Li0406 →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Mysql Best Practices

MySQL development best practices for schema design, query optimization, and database administration

2481 votes

Jpa Patterns

Spring Boot中的JPA/Hibernate实体设计、关系、查询优化、事务、审计、索引、分页和连接池模式。

2456590 votes

Clickhouse Io

ClickHouse数据库模式、查询优化、分析和数据工程最佳实践,适用于高性能分析工作负载。

2456590 votes

Postgres Patterns

基于Supabase最佳实践的PostgreSQL数据库模式,用于查询优化、架构设计、索引和安全。

2456590 votes

Sql Pro

Master modern SQL with cloud-native databases, OLTP/OLAP

458250 votes
View all in databases →