tsdb-reader 0.1.0

Zero-copy, read-only parser for Prometheus TSDB blocks: index v1-v3, all chunk encodings, tombstones
tsdb-reader
Copyright (c) 2026 zhuyanxi

This product is licensed under the MIT License; see LICENSE.

------------------------------------------------------------------------------
Third-party notices
------------------------------------------------------------------------------

Portions of src/chunkenc/ are a Rust port of the Prometheus
TSDB chunk encoders:

    xor.rs        <- tsdb/chunkenc/xor.go
    xor2.rs       <- tsdb/chunkenc/xor2.go
    histogram.rs  <- tsdb/chunkenc/histogram.go, float_histogram.go,
                     histogram_st.go, histogram_meta.go
    bstream.rs    <- tsdb/chunkenc/bstream.go
    varbit.rs     <- tsdb/chunkenc/varbit.go

Those files are derived from the Prometheus project
(https://github.com/prometheus/prometheus), Copyright The Prometheus Authors,
and remain licensed under the Apache License, Version 2.0. A copy of that
license is provided in LICENSE-APACHE. The port keeps the upstream bit layout
and error semantics so that decoding is byte-for-byte identical; the Rust
implementation itself is original work.

The test fixtures under tests/data were generated by the upstream Prometheus
implementation (Apache-2.0). They contain sample data generated by that
program, not upstream source code.

No other third-party code is vendored into this repository.