sndfile-sys

Crates.iosndfile-sys
lib.rssndfile-sys
version0.3.1
sourcesrc
created_at2018-10-17 11:52:19.462982
updated_at2021-07-17 05:17:40.179427
descriptionRust FFI bindings to libsndfile.
homepage
repositoryhttps://github.com/evpobr/sndfile-sys
max_upload_size
id91138
size24,076
(evpobr)

documentation

README

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):

Commit count: 75

cargo fmt