forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to shims/flacenc/Cargo.tomlClear filter

2026-08-14

build(shims): every shim manifest stands on its ownAhmet Kaan Gümüş · a132a9d
build(shims): every shim manifest stands on its own

Shims are built by the consumer as path dependencies, from outside this
workspace. Any inherited field (`edition.workspace`, and the family's dep
table) makes that build read this workspace's root manifest, so a root that
does not parse -- mid-edit, mid-rename, a member being created -- breaks the
consumer's build for a reason that has nothing to do with the shim.

Measured, not assumed: with an unparseable root, a shim carrying
`edition.workspace = true` fails with "invalid potential workspace manifest"
and the same shim with literal fields builds. A member whose manifest has no
source file does not break it either way -- cargo loads only the members it
needs.

So every shim now spells out edition, license, authors and its `ec-*`
dependencies as relative paths; `flacenc` already did, and the rest match it.

Check: `cargo check --manifest-path shims/<name>/Cargo.toml` for all twelve.
feat(flac): ec-flac decoder + encoder and the flacenc shimAhmet Kaan Gümüş · 339321d
feat(flac): ec-flac decoder + encoder and the flacenc shim

Decoder: metadata blocks, frame headers (fixed and variable blocking),
constant/verbatim/fixed/LPC subframes to order 32, escaped and
Rice-coded partitions, all three stereo decorrelations, 8..32-bit,
CRC-8 + CRC-16 verified per frame, STREAMINFO MD5 check, seek-table
positioning, and frame-sync resynchronisation for streams that start
mid-file. Malformed input errors, never panics.

Encoder: fixed block size, wasted-bit detection, fixed predictors,
LPC (Tukey window, Levinson-Durbin, error-feedback quantisation),
exact-cost Rice partition search, per-block stereo decision, 1..8
channels and 4..32 bits, with the input MD5 in STREAMINFO.

shims/flacenc carries package flacenc 0.5.1 over ec-flac for the exact
surface the replica calls (component::BitRepr, error::Verify,
config::Encoder, source::MemSource, encode_with_fixed_block_size,
bitsink::ByteSink).

Verified: 64/64 Xiph subset vectors decode bit-exact vs ffmpeg,
6/6 decodable uncommon vectors bit-exact, faulty vectors error out;
14/14 fixture encodes decode back bit-exact through ffmpeg at 0.961x
the size of ffmpeg's default FLAC.