GithubHelp home page GithubHelp logo

joe-el / swiftoxide Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 1.0 32.31 MB

A Swift wrapper for a Rust library, allowing us to use Rust as a library within Swift.

License: GNU General Public License v3.0

Swift 100.00%
framework ios macos-app swift rust

swiftoxide's Introduction

SwiftOxide

A small Swift package exposing a Rust Library to Swift. SwiftOxide doesn't contain any actual Rust code, instead the SwiftPM manifest has a link to a pre-built Rust binary. This was created to be used with the MunchausenNumbers App I've built for comparing the execution time between Rust and Swift, but you can also use the package with any other project if you want. This project is an update to Building and Deploying a Rust library on iOS which that is an update to the Building and Deploying a Rust library on iOS article from 2017.

Installation

Installing the package contained here can be found in Apple's documentation or in my article, Rust Library in Swift

Usage

Add import SwiftOxide to your code and then the following:

let results = SwiftOxide.rustMunchausenNum()

The results will be an Int array of four items, the Munchausen Numbers.

swiftoxide's People

Contributors

joe-el avatar

Stargazers

victor avatar Joshua Buhler avatar Matthew Iannucci avatar Ruslan Timchenko avatar Shun Kakinoki avatar Suraj avatar Nikita avatar Hyeseong Kim avatar

Watchers

James Cloos avatar  avatar

Forkers

leecade

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.