5 releases (breaking)

Uses old Rust 2015

new 0.5.0 Nov 5, 2024
0.4.0 Nov 3, 2024
0.3.0 Jul 18, 2022
0.2.0 Sep 4, 2020
0.1.0 Nov 28, 2019

#250 in Audio

Download history 9/week @ 2024-07-17 24/week @ 2024-07-24 18/week @ 2024-07-31 19/week @ 2024-08-07 10/week @ 2024-08-14 10/week @ 2024-08-21 10/week @ 2024-08-28 12/week @ 2024-09-04 15/week @ 2024-09-11 24/week @ 2024-09-18 22/week @ 2024-09-25 27/week @ 2024-10-02 56/week @ 2024-10-09 38/week @ 2024-10-16 24/week @ 2024-10-23 179/week @ 2024-10-30

304 downloads per month

MIT license

68KB
436 lines

flac-bound TravisCI build status AppVeyorCI build status Licence

FLAC encoding via libFLAC FFI

Documentation

Building

There are two supported libFLAC back-ends:

  • flac-sys, under the "flac" feature, the default, and
  • libflac-sys, under the "libflac" feature group.

flac-sys tries to link to a libFLAC already present on your system, but it doesn't do a very good job, and might need some help by copying /usr/lib/x86_64-linux-gnu/libFLAC.so (Debian), $MSYSROOT\mingw64\lib\libflac.dll.a (msys2), or equivalent to target/{debug,release}/deps as libflac.so/libflac.dll.a/&c. (note the lowercase).

libflac-sys tries to build libFLAC; this is a problem because it (a) doesn't work all that well (at all) under GNU/NT, and (b) requires the host system to have both CMake and a C toolchain funxional.

The "libflac-noogg" feature will build libFLAC without OGG support.

The "libflac-nobuild" feature will still use libflac-sys but instruct it to link to the system libFLAC.

Downstreams are encouraged to expose these features to the user.

Special thanks

To all who support further development on Patreon, in particular:

  • ThePhD
  • Embark Studios
  • Jasper Bekkers

Dependencies

~0–650KB
~14K SLoC