Coder Social home page Coder Social logo

toursslivers / uniffi-rs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mozilla/uniffi-rs

0.0 0.0 0.0 9.77 MB

a multi-language bindings generator for rust

Home Page: https://mozilla.github.io/uniffi-rs/

License: Mozilla Public License 2.0

Rust 69.50% Kotlin 9.87% Python 7.81% Swift 7.40% C 0.28% RenderScript 0.04% Ruby 5.03% Shell 0.08%

uniffi-rs's Introduction

UniFFI - a multi-language bindings generator for Rust

UniFFI is a toolkit for building cross-platform software components in Rust.

By writing your core business logic in Rust and describing its interface in a special interface definition file, you can use UniFFI to help you:

  • Compile your Rust code into a shared library for use on different target platforms.
  • Generate bindings to load and use the library from different target languages.

For example, UniFFI is currently used in the mozilla/application-services project to build browser storage and syncing functionality for Firefox mobile browsers. Core functionality is written once in Rust, and auto-generated bindings allow that functionality to be called from both Kotlin (for Android apps) and Swift (for iOS apps).

Currently supported "foreign" languages include Kotlin, Swift, Python and Ruby. In general, we'd welcome contributions of other foreign bindings, but we recommend you contact the team first - see the contributing section below.

User Guide

You can read more about using the tool in the UniFFI user guide.

Please be aware that UniFFI is being developed concurrently with its initial consumers, so it is changing rapidly and there are a number of sharp edges to the user experience. Still, we consider is developed enough for production use in Mozilla products and we welcome any feedback you may have about making it more broadly useful.

Etymology and Pronunciation

ˈjuːnɪfaɪ. Pronounced to rhyme with "unify".

A portmanteau word that also puns with "unify", to signify the joining of one codebase accessed from many languages.

uni - [Latin ūni-, from ūnus, one] FFI - [Abbreviation, Foreign Function Interface]

Alternative tools

Other tools we know of which try and solve a similarly shaped problem are:

(Please open a PR if you think other tools should be listed!)

Contributing

If this tool sounds interesting to you, please help us develop it! You can:

Code of Conduct

This project is governed by Mozilla's Community Participation Guidelines.

uniffi-rs's People

Contributors

rfk avatar bendk avatar eoger avatar mhammond avatar jhugman avatar badboy avatar tarikeshaq avatar bhearsum avatar linabutler avatar npars avatar saks avatar skhamis avatar dmose avatar lougeniac64 avatar name1e5s avatar r-ml avatar king6cong avatar vladikoff avatar leplatrem avatar piatra avatar gankra avatar dtolnay avatar sysrqb avatar nnethercote avatar sammygutierrez avatar nilslice avatar travis79 avatar yoshikawa avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.