rust_extension_management

Manage clean builds and NumPy ABI compatibility for the engine_rust Python extension.

1|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/trioskosmos/rabukasim --skill rust-extension-management
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust_extension_management
Source: https://github.com/trioskosmos/rabukasim/tree/main/.agent/skills/rust_extension_management
Command: npx skills add https://github.com/trioskosmos/rabukasim --skill rust-extension-management

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a clear workflow for managing the engine_rust Python extension, addressing common issues like deserialization errors, import failures, and segmentation faults that arise from stale compiled binaries.

Core Features & Use Cases

  • Clean Build Process: Guides users through a robust uninstallation and reinstallation process to ensure the latest Rust code is used.
  • Numpy ABI Compatibility: Explains and provides solutions for mismatches between Python's NumPy version and the version the Rust extension was built against.
  • Troubleshooting Guide: Offers specific error messages to watch for and their underlying causes related to compiled extensions.
  • Use Case: When a new feature is added to the Rust code, and Python starts throwing ValueError on enum deserialization, this skill helps you perform a clean build to resolve the issue.

Quick Start

Use the rust_extension_management skill to perform a clean reinstall of the engine_rust extension.

Frequently Asked Questions about rust_extension_management

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

FAQPage Schema
Why does my Python extension throw a ValueError on enum deserialization after a Rust update?

A ValueError on enum deserialization occurs when Python loads stale compiled Rust binaries. You must perform a clean uninstall and reinstall of the engine_rust extension to load the updated code.

What's the best way to fix ImportError and DLL failures when running a Rust Python extension?

To fix ImportError and DLL failures, perform a clean build workflow for your Rust extension. This ensures compiled binaries are properly updated and linked, resolving stale import errors.

How do I resolve segmentation faults in a Rust Python extension?

Segmentation faults in Rust Python extensions often stem from NumPy ABI compatibility mismatches. Ensure your extension is built against the correct NumPy version and perform a clean build process.

Do I need to rebuild my Rust extension if I update the NumPy version in my Python environment?

Yes, updating NumPy requires rebuilding your Rust extension. A mismatch between Python's NumPy version and the version the Rust extension was built against causes ABI compatibility issues and runtime crashes.

How to perform a clean reinstall of a compiled Rust Python extension?

Perform a clean reinstall by first uninstalling the engine_rust extension to remove stale compiled binaries, then reinstalling it. This guarantees the latest Rust code is compiled and used.