Guide agents through Rust's Foreign Function Interface: calling C from Rust with bindgen, exporting Rust to C with cbindgen, writing safe wrappers, linking libraries via build.rs, and structuring sys crates.
For bindgen and cbindgen configuration details, see references/bindgen-cbindgen.md.
C 상호 운용성을 위한 Rust FFI 기술. Rust에서 C 라이브러리를 호출하거나, bindgen을 사용하여 Rust 바인딩을 생성하거나, cbindgen을 사용하여 Rust 함수를 C로 내보내거나, 안전하지 않은 FFI에 대한 안전한 래퍼를 작성하거나, 시스템 및 공급업체 라이브러리를 연결할 때 사용합니다. bindgen, cbindgen, extern "C", 안전하지 않은 FFI, Rust C 바인딩, Rust에서 C 연결 또는 sys 크레이트에 대한 쿼리에 대해 활성화됩니다. 출처: mohitmishra786/low-level-dev-skills.
터미널 또는 명령줄 도구(Terminal, iTerm, Windows Terminal 등)를 엽니다 이 명령어를 복사하여 실행합니다: npx skills add https://github.com/mohitmishra786/low-level-dev-skills --skill rust-ffi 설치 후 스킬은 자동으로 AI 코딩 환경에 설정되어 Claude Code, Cursor, OpenClaw에서 사용할 수 있습니다