#bindings #libsndfile #encoding #sndfile

sys sndfile-sys

Rust FFI bindings to libsndfile

7 releases

Uses old Rust 2015

0.3.1 Jul 17, 2021
0.2.2 Feb 15, 2021
0.2.1 Apr 4, 2020
0.2.0 Feb 16, 2019
0.1.1 Oct 22, 2018

#550 in Audio

Download history 38/week @ 2023-12-30 8/week @ 2024-01-06 18/week @ 2024-01-13 6/week @ 2024-02-17 25/week @ 2024-02-24 14/week @ 2024-03-02 9/week @ 2024-03-09

54 downloads per month
Used in 2 crates (via sndfile)

MIT license

22KB
484 lines

sndfile-sys

Build Status

Rust FFI bindings to libsndfile.

Notes

MSVC toolchain

Starting from version v0.1.2 sndfile-sys can use Vcpkg package manager to search for native libsndfile library (thanks to Vcpkg crate):

  • Install Vcpkg
  • install static libsndfile library (x86|x64): vcpkg install libsndfile:x64-windows-static
  • Add Vcpkg path (e.g. d:\vcpkg) to VCPKG_ROOT environment variable
  • Add -Ctarget-feature=+crt-static to RUSTFLAGS environment variable

This search method affects MSVC toolchain only. You can disable it completely with environment varible VCPKGRS_DISABLE set to 1.

Use can link to dynamic libsndfile (not recommended for MSVC toolchain):

  • Install dynamic libsndfile library with command: vcpkg install libsndfile:x64-windows
  • Delete RUSTFLAGS environment variable
  • Set VCPKGRS_DYNAMIC environment variable to 1

Starting from version v0.2.2 sndfile-sys can use PkgConfig to search for native libsndfile library (thanks to pkg-config-rs crate):

Dependencies

~67KB