swift-bridge
repo
swift-bridge | repo | |
---|---|---|
16 | 32 | |
698 | - | |
- | - | |
6.3 | - | |
8 days ago | - | |
Rust | ||
Apache License 2.0 | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
swift-bridge
-
macOS Apps in Rust
A bit late, but `swift-bridge` (https://github.com/chinedufn/swift-bridge) does this intelligently, and is probably what you're looking for.
- swift-bridge 0.1.37 supports passing `Box<dyn FnOnce(A, B) -> C>` from Rust to Swift
-
Rust playground on iOS
4) Another route that I tried is to develop a simple terminal app using SwiftUI with a Xcode project to build that app + link against a Rust library compiled for iOS with the actual logic. I used swift-bridge for this and it works really well, to the point where I have a custom logger that you can simply use the print stuff to SwiftUI from Rust using the log crate. Once I have a bit more time, I will probably try figuring out how to clean this up a bit more.
-
Hey Rustaceans! Got a question? Ask here! (28/2022)!
Since Swift is your first target, I might recommend swift-bridge which can generate bindings for Rust async fns that Swift can call directly.
-
What's everyone working on this week (18/2022)?
I'm working on getting my GUI crate (https://github.com/audulus/rui) working on iOS (https://github.com/audulus/rui-ios). Multitouch will be fun. Shout out to the excellent work in swift-bridge: https://github.com/chinedufn/swift-bridge.
-
swift-bridge: type-safe interop between Swift and Rust
So that class SwiftString was actually unused. I've removed it here https://github.com/chinedufn/swift-bridge/pull/33 .
-
swift-bridge now supports calling async Rust functions from Swift
Here's an example of a Rust library that exposes an async function that uses reqwest to make an API call, and a main.swift that calls that async function.
-
Any good tutorials/examples on using a Rust library in Swift code for multiple targets?
Have you tried Swift Bridge? https://github.com/chinedufn/swift-bridge
- Swift-bridge: Call Rust from Swift and vice versa
repo
-
Accident had two decently sized mp4s in my project and now I cant get rid of the error nor upload code to github for this project
❯ git push origin home Enumerating objects: 76, done. Counting objects: 100% (76/76), done. Delta compression using up to 10 threads Compressing objects: 100% (61/61), done. Writing objects: 100% (70/70), 352.64 MiB | 7.44 MiB/s, done. Total 70 (delta 21), reused 0 (delta 0), pack-reused 0 remote: Resolving deltas: 100% (21/21), completed with 4 local objects. remote: error: Trace: 391ca38c5989c0957f915b2c9fe8f04f067102a3d2bb207a6d21ee170756fd44 remote: error: See https://gh.io/lfs for more information. remote: error: File base/static/img/background/home-background-summer-vid.mp4 is 230.33 MB; this exceeds GitHub's file size limit of 100.00 MB remote: error: File base/static/img/background/home-background-winter-vid.mp4 is 123.42 MB; this exceeds GitHub's file size limit of 100.00 MB remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com. To https://github.com/USERNAME/REPO.git ! [remote rejected] home -> home (pre-receive hook declined) error: failed to push some refs to 'https://github.com/USERNAME/REPO.git'
-
Looking for where git repo is stored on RHEL after clone
Hey guys, I have a script in my RHEL ec2 instance which is held in UserData, and the only line of code in there is - "git clone https://github.com/username/repo".
-
Log with a Wrong Git Username
Once you have a personal access token, you can enter it instead of your password when performing Git operations over HTTPS.
For example, to clone a repository on the command line you would enter the following git clone command. You would then be prompted to enter your username and password. When prompted for your password, enter your personal access token instead of a password.
$ git clone https://github.com/USERNAME/REPO.git
-
Add a second remote origin with Git
$ git remote -v origin https://github.com/username/repo.git (fetch) origin https://github.com/username/repo.git (push) second https://github.com/username/second-repo.git (fetch) second https://github.com/username/second-repo.git (push)
-
Mirroring GitLab to GitHub: A Step-by-Step Guide with Public Key Authentication
#!/bin/bash # Define an array that maps GitLab and GitHub repository URLs declare -A repo_map=( ["https://gitlab.com/username/repo.git"]="https://github.com/username/repo.git" ["https://gitlab.com/username/other-repo.git"]="https://github.com/username/other-repo.git" ) # Loop through the array and mirror each GitLab repository to its corresponding GitHub repository for gitlab_url in "${!repo_map[@]}"; do github_url="${repo_map[$gitlab_url]}" repo_name="$(basename "$gitlab_url" .git)" # Clone the GitLab repository git clone --mirror "$gitlab_url" # Change to the local repository directory cd "$repo_name.git" # Add the GitHub repository as a remote git remote add github "$github_url" # Push all branches and tags to the GitHub repository git push --mirror github # Remove the local repository directory cd .. rm -rf "$repo_name.git" done
-
30 Git Commands With Example For Developers
git clone- clones a repository into a new directory Example: git clone https://github.com/username/repo.git
-
The Ultimate Guide to Mastering Git (You'll Wonder How You Ever Lived Without It!)
$ git remote add origin https://github.com/username/repo.git $ git push -u origin master
-
Equivalent of git diff branch_1..branch_2 -- path/to/file on a github repository
https://github.com/username/repo/compare/master@{7day}..master
-
Basic Git Command
git pull https://github.com/username/repo
-
How to clone a private git repository into a kubernetes pod using ssh keys in secrets?
apiVersion: batch/v1kind: Jobmetadata: name: nest-build-kaniko labels: app: nest-kaniko-examplespec: template: spec: containers: - image: 'gcr.io/kaniko-project/executor:latest' name: kaniko args: ["--dockerfile=/workspace/Dockerfile", "--context=/workspace/", "--destination=aws.dest.cred"] volumeMounts: - mountPath: /workspace name: source - name: aws-secret mountPath: /root/.aws/ - name: docker-config mountPath: /kaniko/.docker/ initContainers: - name: download image: alpine:3.7 command: ["/bin/sh","-c"] args: ['apk add --no-cache git && git clone https://github.com/username/repo.git /tmp/'] volumeMounts: - mountPath: /tmp name: source restartPolicy: Never volumes: - emptyDir: {} name: source - name: aws-secret secret: secretName: aws-secret - name: docker-config configMap: name: docker-config The yaml file after using git-sync for cloning private repository:
What are some alternatives?
swift - The Swift Programming Language
first-cli-repo - The first repository I am creating from terminal.
cxx - Safe interop between Rust and C++
azureterraform
rust - Empowering everyone to build reliable and efficient software.
simdeez - easy simd
config-rs - ⚙️ Layered configuration system for Rust applications (with strong support for 12-factor applications).
AutoPWN-Suite - AutoPWN Suite is a project for scanning vulnerabilities and exploiting systems automatically.
rui - Declarative Rust UI library
git-push
log - Logging implementation for Rust
go-env - a golang library to manage environment variables