2 مستودعات
Annotating Rust functions and traits with export macros to expose them across FFI without a separate definition file.
Distinct from Rust User-Defined Functions: Distinct from Rust User-Defined Functions: focuses on FFI export macros, not SQL UDF execution.
Explore 2 awesome GitHub repositories matching development tools & productivity · FFI Export Macros. Refine with filters or upvote what's useful.
wasm-bindgen هو مولد روابط وطبقة تشغيل بيني مصممة لتعيين أنواع البيانات والوظائف عبر الحدود بين WebAssembly وJavaScript. يعمل كواجهة وظائف أجنبية (foreign function interface) تقوم بتوليد الكود المتكرر الضروري لتمكين التواصل ثنائي الاتجاه بين Rust وبيئة تشغيل المتصفح. يولد المشروع كود الغراء والمغلفات التي تؤتمت تحويل الأنواع المعقدة، مما يسمح بتصدير وظائف Rust كوحدات JavaScript واستيراد واجهات برمجة تطبيقات المتصفح إلى Rust. يستخدم وحدات الماكرو الإجرائية لتعريف هذه الواجهات ويولد الروابط بناءً على تعريفات أنواع Rust. يدير النظام الذاكرة من خلال تمرير مؤشر الذاكرة الخطية ويتعامل مع تبادل الموارد باستخدام مقابض الذاكرة التي تديرها JavaScript. يعتمد على اتفاقية استدعاء متوافقة مع C ABI لتمرير الأعداد الصحيحة والأرقام العشرية البدائية بين الوحدة والمضيف.
Uses procedural macros to annotate Rust functions and types for export to the JavaScript environment.
uniffi-rs is a Rust FFI binding generator and multi-language binding tool. It functions as an automated binding scaffolder that creates type-safe foreign function interfaces and native wrappers for Rust libraries in languages such as Swift, Kotlin, and Python. The project provides a system for cross-language interface definition, allowing functions and data structures to be specified in a shared format to ensure consistent API signatures across platforms. It further serves as an FFI memory management layer, handling object lifetimes and thread safety when sharing state between Rust and foreig
Annotates functions and traits with export macros to expose them across FFI without a separate definition file.