rust-pyo3-function

Integrate Rust compute kernels into Python via PyO3 bindings.

13|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/phenobarbital/antigravity-config --skill rust-pyo3-function
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-pyo3-function
Source: https://github.com/phenobarbital/antigravity-config/tree/main/backend/.agent/skills/rust-pyo3-function
Command: npx skills add https://github.com/phenobarbital/antigravity-config --skill rust-pyo3-function

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a guide for implementing or modifying a Rust function exposed to Python through PyO3, enabling high-performance compute kernels and safe, stable API wiring within the eo-processor project.

Core Features & Use Cases

  • Add or update Rust-based compute kernels exposed to Python via PyO3 for use in the Python module.
  • Enforce shape validation, numerical stability, and clear error handling when integrating with Python.
  • Use cases include adding new kernels, fixing numerical/shape bugs, and wiring Rust functions into the existing Python interface.

Quick Start

Add or modify a Rust function exposed to Python via PyO3 and wire it into the Python module following the project’s conventions.

Frequently Asked Questions about rust-pyo3-function

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

FAQPage Schema
How do I expose a Rust compute kernel to Python using PyO3?

To expose a Rust compute kernel to Python using PyO3, you implement the Rust function and wire it into the Python module following project conventions, ensuring API stability, deterministic behavior, and safety validations for the binding.

What is the best way to add shape validation and error handling to Rust PyO3 bindings?

The best way to add shape validation and numerical stability to Rust PyO3 bindings is by enforcing strict validation rules and clear error handling directly within the Rust function during the integration process.

Can I use PyO3 to fix numerical bugs in existing Python compute kernels?

Yes, you can use PyO3 to fix numerical or shape bugs in existing compute kernels by updating the exposed Rust function and re-wiring it into the Python interface to maintain safe, stable API behavior.

Does the eo-processor require specific safety validations for PyO3 integration?

Yes, the eo-processor requires PyO3 integrations to satisfy API stability, deterministic behavior, and safety validation requirements, ensuring that exposed Rust compute kernels operate safely within the Python environment.