polyglot-rust-c

Official

Write dual Rust/C/C++ sources that compile in both.

Authorletta-ai
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill guides creating polyglot source files that compile and run as both Rust and C/C++ programs, leveraging cross-language syntax tricks and preprocessor hacks.

Core Features & Use Cases

  • Dual-language skeleton and compilation workflow
  • Techniques to hide one language inside comments or preprocessor blocks
  • Phase-by-phase incremental development and testing

Quick Start

Create a minimal file that compiles as both Rust and C/C++, then incrementally add features while verifying both compilers succeed.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: polyglot-rust-c
Download link: https://github.com/letta-ai/skills/archive/main.zip#polyglot-rust-c

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository