C# Wrapper for Rust library XCap for macOS. This is an internal component for SnapX.
No support is provided for this library. It is meant for SnapX only.
- Rust toolchain (stable)
- macOS (aarch64 or x86_64)
- .NET 10.0+ (for consumer projects)
To build the native library:
cargo build --releaseTo build a universal binary for all macOS architectures:
rustup target add x86_64-apple-darwin aarch64-apple-darwin
cargo build --release --target x86_64-apple-darwin
cargo build --release --target aarch64-apple-darwin
lipo -create -output libsnapxrust.dylib \
target/aarch64-apple-darwin/release/libsnapxrust.dylib \
target/x86_64-apple-darwin/release/libsnapxrust.dylibThe library is packaged as a NuGet component. It targets the osx runtime identifier. Output binaries are located in runtimes/osx/native.
GPL-3.0-or-later