Crates.io | libflac-sys |
lib.rs | libflac-sys |
version | 0.3.1 |
source | src |
created_at | 2020-08-22 12:29:17.97946 |
updated_at | 2023-12-10 11:33:09.770568 |
description | Raw FFI bindings to the libFLAC library |
homepage | |
repository | https://github.com/mgeier/libflac-sys |
max_upload_size | |
id | 279485 |
size | 3,035,116 |
libFLAC
libraryThis crate provides raw FFI bindings to the libFLAC
library for reading and
writing losslessly compressed FLAC audio files.
Following the *-sys
package conventions,
the libflac-sys
crate does not define higher-level abstractions over
the native libFLAC
library functions.
Add this to your Cargo.toml
:
[dependencies]
libflac-sys = "0.3"
build-flac
(enabled by default): build libFLAC
instead of linking
to the system library – cmake
and a C toolchain is required
build-ogg
(enabled by default, implies build-flac
):
build support for FLAC data in OGG containers into libFLAC
;
if build-flac
is not selected, support for OGG containers
depends on the configuration of the system libFLAC
The Rust bindings have already been auto-generated with bindgen
(using the bindgen/run-bindgen.sh
script) and are part of this crate
(see src/bindings.rs
).
If you want to report a problem or suggest an improvement, please go to https://github.com/mgeier/libflac-sys. Contributions are always welcome!
This crate uses the BSD-3-Clause
license, in reference to
Xiph.Org's BSD-like license which is used as
libFLAC
license and
libogg
license.