Cargo Features

[dependencies]
babycat = { version = "0.0.15", default-features = false, features = ["enable-filesystem", "enable-multithreading", "enable-libsamplerate", "enable-audio-playback", "enable-ffmpeg", "enable-ffmpeg-static", "enable-ffmpeg-build", "frontend-binary", "frontend-rust", "frontend-wasm", "frontend-python", "frontend-c"] }

== Features ==

default = frontend-rust

Default features

enable-filesystem frontend-binary? frontend-c? frontend-python? frontend-rust

Additional features to compile in

Affects decoder::from_file_by_backend, decoder::from_file, backend::batch, batch::waveforms_from_files, batch::waveforms_from_files_into_numpys, batch::waveforms_from_files_into_numpys_unwrapped

enable-multithreading frontend-binary? frontend-c? frontend-python? frontend-rust = rayon

Affects backend::batch, batch::waveforms_from_files, batch::waveforms_from_files_into_numpys, batch::waveforms_from_files_into_numpys_unwrapped

enable-libsamplerate frontend-binary? frontend-c? frontend-python? frontend-rust = samplerate
enable-audio-playback frontend-binary? = rodio
enable-ffmpeg enable-ffmpeg-build? enable-ffmpeg-static? = ffmpeg-next

Dynamically link to FFmpeg

Enables codec, device and format of ffmpeg-next ^5.1.1

ffmpeg

enable-ffmpeg-static enable-ffmpeg-build? = enable-ffmpeg

Statically link to FFmpeg

Enables static of ffmpeg-next ^5.1.1

enable-ffmpeg-build = enable-ffmpeg, enable-ffmpeg-static

Build FFmpeg and statically link to it

Enables build of ffmpeg-next ^5.1.1

frontend-binary = crossterm, enable-audio-playback, enable-filesystem, enable-libsamplerate, enable-multithreading, env_logger, structopt

These "frontends" are common groupings of features for targets.

Required by the binary

frontend-rust default = enable-filesystem, enable-libsamplerate, enable-multithreading
frontend-wasm = js-sys, wasm-bindgen

Affects frontends::wasm, babycat::frontends

frontend-python = enable-filesystem, enable-libsamplerate, enable-multithreading, numpy, pyo3

Enables abi3, abi3-py38 and extension-module of pyo3 ^0.18.1

Affects frontends::python, babycat::frontends

frontend-c = enable-filesystem, enable-libsamplerate, enable-multithreading

Affects frontends::c, babycat::frontends

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

== Dependencies ==

rayon enable-multithreading?

Enables rayon

for multithreading

samplerate enable-libsamplerate?

Enables samplerate

for libsamplerate

wasm-bindgen frontend-wasm?

Enables wasm-bindgen

for webassembly frontend

js-sys frontend-wasm?
numpy frontend-python?

Enables numpy ^0.18.0

for python frontend

pyo3 frontend-python?

Enables pyo3 ^0.18.1

env_logger frontend-binary?

Enables env_logger ^0.9

for binary targets

structopt frontend-binary?
rodio enable-audio-playback?

Enables rodio ^0.15

crossterm frontend-binary?

Enables crossterm ^0.23

ffmpeg-next enable-ffmpeg? enable-ffmpeg-build? enable-ffmpeg-static?

Enables ffmpeg-next ^5.1.1