Skip to content

Instantly share code, notes, and snippets.

View ddnomad's full-sized avatar
🇺🇦
https://u24.gov.ua

ddnomad ddnomad

🇺🇦
https://u24.gov.ua
View GitHub Profile
@zenofile
zenofile / build.sh
Last active January 21, 2025 13:18
Building a static tmux binary with musl
#!/usr/bin/env bash
set -o errexit
MUSL_VERSION=1.2.5
LIBEVENT_VERSION=2.1.12
NCURSES_VERSION=6.5
TMUX_VERSION=3.5a
TARGETDIR=$1
@Jomy10
Jomy10 / rust_in_swift.md
Last active April 4, 2025 23:17
Calling Rust library from Swift code (creating executable)

Calling a Rust library from Swift

This gist shows a quick overview of calling Rust in a Swift project, with Swift Package Manager configured.

Let's go ahead and create a folder containing all our sources:

mkdir swift-rs && cd $_