RepositoryRust
kevinmehall

kevinmehall/rust-soapysdr

Rust bindings for SoapySDR, the vendor-neutral software defined radio hardware abstraction layer

106stars
33forks
1issues
0views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: soapysdr

#1 Repository of the week

2
TINIX TRENDING·Topic: rust-bindings

#2 Repository of the week

3
TINIX TRENDING·Topic: software-defined-radio

#3 Repository of the week

Rust bindings for SoapySDR

SoapySDR provides a hardware abstraction layer for many software defined radio devices.

API Documentation | crates.io | Changelog

Dependencies

This library requires dependencies not handled by Cargo:

  • libsoapysdr 0.8.x
  • pkg-config (Linux and macOS only)

Ubuntu

(Tested on Ubuntu 24.04)

sudo apt install libsoapysdr-dev pkg-config

# Choose the appropriate drivers for your hardware:
sudo apt install soapysdr-module-rtlsdr soapysdr-module-hackrf soapysdr-module-uhd soapysdr-module-lms7

Nix

soapysdr-with-plugins and pkg-config

(see shell.nix)

Windows

Install pre-built PothosSDR and add PothosSDR bin directory to system PATH.

MacOS

Install SoapySDR with Homebrew:

brew install pkg-config
brew tap pothosware/homebrew-pothos
brew update

# Then install the appropriate packages for your hardware:
brew install soapyrtlsdr
brew install soapyhackrf
brew install soapybladerf
# ...

Warning

Many SoapySDR driver modules have error handling and thread safety bugs. This library provides safe Rust wrappers assuming the drivers meet the (under-documented) intentions of the SoapySDR core API contract, but if SoapySDR loads modules that violate this contract and you do atypical things with them, you may encounter unexpected behavior. For details, see this SoapySDR issue.

Examples

This crate comes with two small utilities that serve as example code.

soapy-sdr-info

Displays device details like SoapySDRUtil.

cargo run --release --example soapy-sdr-info

soapy-sdr-stream

Records data from a device.

e.g. capture 15 seconds of data from the FM band:

cargo run --release --example soapy-sdr-stream -- -d driver=rtlsdr -r out.cfile -f 96M -s 1M -n 15M

The resulting file contains 32-bit little-endian complex float samples, and can be opened with inspectrum.

License

Licensed under either of

Similar Projects

Discover other similar projects and AI models.

RepositoryC++
gnss-sdr/gnss-sdr

GNSS-SDR, an open-source software-defined GNSS receiver

2.3k
Dec 1, 2026
RepositoryC++
cjcliffe/CubicSDR

Cross-Platform Software-Defined Radio Application

2.3k
Dec 2, 2026
RepositoryC++
rtl-airband/RTLSDR-Airband

Multichannel AM/NFM demodulator

964
Nov 28, 2026
RepositoryJupyter Notebook
JiaoXianjun/BTLE

Bluetooth Low Energy (BLE) packet sniffer and transmitter for both standard and non standard (raw bit) based on Software Defined Radio (SDR).

959
Jun 8, 2026
RepositoryC
AlbrechtL/welle.io

A DAB/DAB+ Software Defined Radio (SDR)

767
Nov 30, 2026
RepositoryC
righthalfplane/SdrGlut

SdrGlut is a simple software defined radio - using glut and glui for its interface

104
Jun 30, 2025
RepositoryPython
rafafunt/FalconSDR

Wideband SDR scanner that records only real transmissions. Browser UI for local use or a headless receiver, searchable library, optional Whisper transcription. RTL-SDR and SoapySDR. Linux, Windows and macOS.

72
Nov 25, 2026
RepositoryRust
nix-rust/nix

Rust friendly bindings to *nix APIs

3.1k
Nov 17, 2026
RepositoryRust
mlua-rs/mlua

High level Lua 5.5/5.4/5.3/5.2/5.1 (including LuaJIT) and Luau bindings to Rust with async/await support

3.0k
Nov 22, 2026