sndfile-sys
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
Vcpkgpath (e.g.d:\vcpkg) toVCPKG_ROOTenvironment variable - Add
-Ctarget-feature=+crt-statictoRUSTFLAGSenvironment 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
libsndfilelibrary with command:vcpkg install libsndfile:x64-windows - Delete
RUSTFLAGSenvironment variable - Set
VCPKGRS_DYNAMICenvironment variable to1
Starting from version v0.2.2 sndfile-sys can use PkgConfig to search for native
libsndfile library (thanks to pkg-config-rs crate):