polyglot-rust-c
CommunityWrite code that speaks Rust and C/C++.
AuthorZurybr
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the challenge of creating single source files that can be compiled and executed as valid programs in both Rust and C/C++ environments, leveraging language-specific syntax and preprocessor directives.
Core Features & Use Cases
- Polyglot Code Generation: Develop source files that are simultaneously compilable by Rust and C/C++ compilers.
- Cross-Language Compatibility: Ensure code functions correctly regardless of which compiler is used.
- Use Case: Create a single
main.rsfile that can be compiled byrustcto produce a Rust executable and byg++to produce a C++ executable, both performing a similar basic task.
Quick Start
Use the polyglot-rust-c skill to create a file that compiles as both Rust and C++.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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/Zurybr/lefarma-skills/archive/main.zip#polyglot-rust-c Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.