Skip to content

coin-shuffle/crypto-bridge-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Crypto Funcs for Swift

This repository contains Rust cryptography functions that can be used in Swift applications. The functions are compiled into a static library that can be linked to a Swift application.

Getting Started

To use the Rust cryptography functions in your Swift project, follow these steps:

  1. Clone the repository:
git clone https://github.com/coin-shuffle/crypto-bridge.git
  1. Build the Rust static library:
cd crypto-bridge
cargo lipo --release
  1. Copy the library to your Swift project:
cp target/universal/release/libcrypto.a /path/to/your/swift/project/
  1. In your Xcode project, add the Rust library to the project by selecting "Add files to [project name]" from the "File" menu.

  2. In your Swift code, import the Rust functions:

import crypto_bridge
  1. Call the Rust functions as needed.

Requirements

  • Rust version 1.50.0 or later.
  • Xcode version 10.2 or later.
  • iOS deployment target version 9.0 or later.

Tutorial

If you need more detailed instructions on how to use Rust in your iOS application, check out this tutorial provided by Mozilla. It covers the process of setting up Rust on iOS, creating a Rust static library, and integrating it into a Swift application.

License

This project is licensed under the Apache-2 License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published