https://github.com/evpobr/sndfile-sys
Rust FFI bindings to libsndfile
https://github.com/evpobr/sndfile-sys
rust-bindings
Last synced: about 1 year ago
JSON representation
Rust FFI bindings to libsndfile
- Host: GitHub
- URL: https://github.com/evpobr/sndfile-sys
- Owner: evpobr
- Created: 2018-10-15T05:18:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-07-17T05:07:52.000Z (almost 5 years ago)
- Last Synced: 2025-04-12T00:44:06.867Z (about 1 year ago)
- Topics: rust-bindings
- Language: Rust
- Size: 43 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# sndfile-sys
[](https://travis-ci.org/evpobr/sndfile-sys)
Rust FFI bindings to [libsndfile](https://github.com/erikd/libsndfile).
## Notes
### MSVC toolchain
Starting from version v0.1.2 `sndfile-sys` can use [Vcpkg package manager](https://github.com/Microsoft/vcpkg) to search for
native `libsndfile` library (thanks to [Vcpkg](https://github.com/mcgoo/vcpkg-rs) 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](git://anongit.freedesktop.org/pkg-config) to search for native
`libsndfile` library (thanks to [pkg-config-rs](https://github.com/rust-lang/pkg-config-rs) crate):