tsdb-reader 0.3.0

Read-only, zero-copy Prometheus TSDB block reader: index v1-v3, all chunk encodings, integer histograms, postings and label matchers, tombstones
Documentation
# Vendored test fixtures

`block/` and `chunks.json` are checked-in golden fixtures generated by the
Prometheus TSDB implementation. They are included so tests run from this
standalone repository and from a `cargo package` tarball.

Provenance: generated by `fixtures/gen` (`go run . -out data`) against the
vendored upstream Prometheus implementation. `block/ground_truth.json` is the
reference dump the tests compare against, so it must be regenerated together
with the block.

The fixtures are test data, not vendored Prometheus source code. Their upstream
provenance and license are documented in the crate's `NOTICE`.

## `hist_exactness.json`

Generated by `fixtures/gen` (`cd fixtures/gen && GOFLAGS=-mod=mod go run .`) with
the upstream Prometheus chunk encoders. It covers the cases the block fixture
cannot: integer histograms whose counts exceed 2^53, stale histogram markers and
float histogram buckets. Regenerate it whenever the reference implementation is
upgraded; the JSON is compared field by field in `tests/hist_exactness.rs`.

## `diff/`

`diff/block/<ulid>` is a block written by the Prometheus chunk, index and
tombstone writers (`fixtures/gen`), and `diff/reference.json` is the full dump
read back through the same implementation: labels, series references, every
sample and the deletion intervals. `tests/differential.rs` compares our reader
against that dump field by field.

## `matcher_semantics.json`

Generated by `fixtures/gen` (`matcher.go`) from Prometheus' `labels.Matcher`:
for each (operator, value, input) triple it records the expected verdict, plus
the invalid regular expressions that must be rejected. `tests/matcher_semantics.rs`
compares our `LabelMatcher` against it.