💥 Breaking Changes
-
Fix max packet size calculations
Migration Guide:
This change brings the minimum supported version of the Rust compiler up to 1.57.0.
Instead of using the
MAX_ESCAPE_HEADER_BYTES
constant to manually calculate the required output buffer size, this is now exposed as a function on theFormatDescription
struct. Simply callmax_packet_size()
on your output format description struct.This functions is a const fn, so it can be used in const contexts. In addition, the
FormatDescription::alac
constructor was also made const, so that the minimum output buffer size can be calculated at compile time.
🎉 Enhancements
- Use log crate instead of println
- Drop dependency on std library
- Simplify AlacEncoder::encode implementation
🌹 Internal Changes
- Remove Docker files
- Switch CI from Travis to GitHub Actions
- Add more realistic benchmark
- Fix all Clippy lints
- Rework debug vs. release assertions
- Use usize for num_bits
- Use usize for bytes_shifted
- Use usize for chan_bits
- Use usize for num_channels