Skip to content

An example of a basic Rust static library for use in Swift.

License

Notifications You must be signed in to change notification settings

joe-el/rust-lib-in-swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Lib in Swift

A basic Rust static library for any Swift project supporting various Apple platforms such as iOS, iOS Simulator, macOS, and mac Catalyst for both Intel and Apple silicon. In it you'll see a wrapper library mapping Rust's API to Swift by a C bridge header which contains a function rust_munchausen_numbers() that takes no arguments but returns a tuple containing four Int32 types showing The Münchhausen Numbers.

Usage

Installing and using the code samples contained in this repo can be found in the article available at this link, Rust Library in Swift